cupertino_http 2.3.0
cupertino_http: ^2.3.0 copied to clipboard
A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System.
2.3.0 #
- Add the ability to abort requests.
- Make
ConnectionException.toStringmore helpful.
2.2.0 #
- Cancel requests when the response stream is cancelled.
- Add a new exception type
NSErrorClientExceptionthat contains theNSErrorassociated with the failure.
2.1.1 #
- Support
package:web_socket1.0.0.
2.1.0 #
- Remove some unnecessary native code.
- Upgrade to
package:objective_c7.0. - Upgrade to
package:ffigen18.0. - Fix a bug where
package:cupertino_httpdid not work withpackage:firebase_performanceenabled.
2.0.2 #
2.0.0 #
- The behavior of
CupertinoClientandCupertinoWebSockethas not changed. - Breaking:
MutableURLRequest.httpBodyStreamnow takes aNSInputStreaminstead of aStream<List<int>>. - Breaking: The following enums/classes previous defined by
package:cupertino_httpare now imported frompackage:objective_c:NSDataNSErrorNSHTTPCookieAcceptPolicyNSMutableDataNSURLRequestCachePolicyNSURLRequestNetworkServiceTypeNSURLSessionMultipathServiceTypeNSURLSessionResponseDispositionNSURLSessionTaskStateNSURLSessionWebSocketCloseCodeNSURLSessionWebSocketMessageType
- Breaking:
URLSession.dataTaskWithCompletionHandleris no longer supported for background sessions.
1.5.1 #
- Allow
1000as acodeargument inCupertinoWebSocket.close. - Fix a bug where the
Content-Lengthheader would not be set under certain circumstances.
1.5.0 #
- Add integration to the DevTools Network View.
- Upgrade to
package:ffigen11.0.0. - Bring
WebSocketbehavior in line with the documentation by throwingWebSocketConnectionClosedrather thanStateErrorwhen attempting to send data to or close an already closedCupertinoWebSocket. - Update minimum supported iOS/macOS versions to be in sync with the minimum (best effort) supported for Flutter: iOS 12, macOS 10.14.
- Eagerly free resources on
CupertinoClient.close().
1.4.0 #
- Experimental support for the
package:web_socketWebSocketinterface.
1.3.0 #
- Use
package:http_image_providerin the example application. - Support
BaseResponseWithUrl.
1.2.0 #
- Add support for setting additional http headers in
URLSessionConfiguration.
1.1.0 #
- Add websocket support to
cupertino_api. - Add streaming upload support, i.e., if
CupertinoClient.send()is called with aStreamedRequestthen the data will be sent to the server incrementally. - Deprecate
Data.fromUint8Listin favor ofData.fromList, which accepts anyList<int>. - Disable additional analyses for generated Objective-C bindings to prevent
errors from
dart analyze. - Throw
ClientExceptionwhen the'Content-Length'header is invalid. - Add support for configurable caching through
URLSessionConfiguration.cache.
1.0.1 #
- Remove experimental status from "Readme"
1.0.0 #
- Require Dart 3.0
- Require Flutter 3.10.0
0.1.2 #
- Require Dart 2.19
- Fix a reference count race with forwarded delegates.
0.1.1 #
- Add a
URLSession.sessionDescriptionfield.
0.1.0 #
- Restructure
package:cupertino_httpto offer a singleimport.
0.0.11 #
- Fix a bug where the images in the example would be loaded using
dart:ioHttpClient. CupertinoClientthrows an exception ifsendis called afterclose.
0.0.9 #
- Add a more complete implementation for
URLSessionTask:priorityproperty - hint for host prioritization.currentRequestproperty - the current request for the task (will be different thanoriginalRequestin the face of redirects).originalRequestproperty - the original request for the task.errorproperty - anErrorobject if the request failed.taskDescriptionproperty - a developer-set description of the task.countOfBytesExpectedToSendproperty - the size of the body bytes that will be sent.countOfBytesSentproperty - the number of body bytes sent in the request.prefersIncrementalDeliveryproperty - whether to deliver the response body in one chunk (if possible) or many.
- Upgrade to ffigen ^7.2.0 and remove unnecessary casts.
0.0.8 #
- Make timeout and caching policy configurable on a per-request basis.
0.0.7 #
- Upgrade
ffidependency.
0.0.6 #
- Make the number of simultaneous connections allowed to the same host configurable.
- Fixes cupertino_http: Failure calling Dart_PostCObject_DL.
0.0.5 #
- Add the ability to set network service type.
- Add the ability to control multipath TCP connections.
- Set
StreamedResponse.reasonPhraseandStreamedResponse.request. Fixes cupertino_http: BaseResponse.request is null.
0.0.4 #
- Add the ability to control caching policy.
0.0.3 #
- Follow the project style in the example app.
- Use
runWithClientin the example app. - Add another README example
0.0.2 #
- A single comment adjustment.
0.0.1 #
- Initial development release.