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 HttpClientAdapter for each platform. Therefore, the required effort to add tests is kept to a minimum. Since CupertinoClient and CronetClient depend anyway on http this also doesn't add any additional dependency.
CronetAdapter
A HttpClientAdapter for Dio which delegates HTTP requests to the native platform by making use of cronet_http.
CronetClient
A HTTP Client based on the Cronet network stack.
CronetClientWithProfile
A test-only class that makes the HttpClientRequestProfile data available.
CronetEngine
An environment that can be used to make HTTP requests.
CronetStreamedResponse
An HTTP response from the Cronet network stack.
CupertinoAdapter
A HttpClientAdapter for Dio which delegates HTTP requests to the native platform by making use of cupertino_http.
CupertinoClient
A HTTP Client based on the Foundation URL Loading System.
CupertinoWebSocket
A WebSocket implemented using the NSURLSessionWebSocketTask API.
HTTPURLResponse
The response associated with loading a HTTP URL.
MutableURLRequest
A mutable request to load a URL.
NativeAdapter
A HttpClientAdapter for 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 ClientException generated from an NSError.