native_dio_adapter library
Classes
- ConversionLayerAdapter
-
A conversion layer which translates Dio HTTP requests to
http compatible requests.
This way there's no need to implement custom
HttpClientAdapterfor each platform. Therefore, the required effort to add tests is kept to a minimum. SinceCupertinoClientandCronetClientdepend anyway onhttpthis also doesn't add any additional dependency. - CronetAdapter
-
A
HttpClientAdapterfor Dio which delegates HTTP requests to the native platform by making use of cronet_http. - CronetClient
-
A HTTP
Clientbased on the Cronet network stack. - CronetClientWithProfile
-
A test-only class that makes the
HttpClientRequestProfiledata available. - CronetEngine
- An environment that can be used to make HTTP requests.
- CronetStreamedResponse
- An HTTP response from the Cronet network stack.
- CupertinoAdapter
-
A
HttpClientAdapterfor Dio which delegates HTTP requests to the native platform by making use of cupertino_http. - CupertinoClient
-
A HTTP
Clientbased on the Foundation URL Loading System. - CupertinoWebSocket
-
A
WebSocketimplemented using the NSURLSessionWebSocketTask API. - HTTPURLResponse
- The response associated with loading a HTTP URL.
- MutableURLRequest
- A mutable request to load a URL.
- NativeAdapter
-
A
HttpClientAdapterfor Dio which delegates HTTP requests to the native platform, where possible. - NSURLSessionWebSocketCloseCode
- The WebSocket close codes follow the close codes given in the RFC
- URLCache
- A cache for URLRequests. Used by URLSessionConfiguration.cache.
- URLRequest
- A request to load a URL.
- URLResponse
- The response associated with loading an URL.
- URLSession
- A client that can make network requests to a server.
- URLSessionConfiguration
- Controls the behavior of a URLSession.
- URLSessionDownloadTask
- A task associated with downloading a URI to a file.
- URLSessionTask
- A task associated with downloading a URI.
- URLSessionWebSocketMessage
- A WebSocket message.
- URLSessionWebSocketTask
- A task associated with a WebSocket connection.
Enums
- CacheMode
- The type of caching to use when making HTTP requests.
- NSHTTPCookieAcceptPolicy
- NSURLRequestCachePolicy
- ! @enum NSURLRequestCachePolicy
- NSURLRequestNetworkServiceType
- ! @enum NSURLRequestNetworkServiceType
- NSURLSessionMultipathServiceType
- ! @enum NSURLSessionMultipathServiceType
- NSURLSessionResponseDisposition
- NSURLSessionTaskState
- NSURLSessionWebSocketMessageType
Exceptions / Errors
- ConnectionException
- An error occurred while connecting to the peer.
- NSErrorClientException
-
A
ClientExceptiongenerated from anNSError.