simple_http_client library

Classes

Response
Contains the information of the response [...]
SimpleCertificate
SimpleHttpClient
Wraps dart:io's HttpClient to provide an easy to use, yet flexible and feature rich implementation of an Http Client. [...]

Typedefs

Interceptor(HttpClientRequest request) → Future<HttpClientRequest>
If one or more interceptors are set, they will be called before the request is made in order to allow for modifications of the HttpClientRequest See SimpleHttpClient.addInterceptor

Exceptions / Errors

CantConnectException
Thrown if the client can't connect to the specified url
TimeOutException
The timeout for a request has been reached.
TLSException
There is an error with the certificate received from the server. If you are using a self-signed certificate use trustedCertificates when creating the instance of the SimpleHttpClient to set add your certificate to the security context. [...]
UnauthorizedException
Thrown if the response has a 401 status code, and there is not authenticator set (see SimpleHttpClient.setAuthenticator). [...]