networking library
Support for doing something awesome.
More dartdocs go here.
Classes
- AuthorizationInterceptor
- BadGatewayHttpError
- BadRequestHttpError
- BinaryResponse
- Types a response as successful and that has the binary content-type
- ConflictHttpError
- ErrorInterceptor
- ErrorResponse
- Types a response as failure (typical status code range: 400-599)
- ExpectationFailedHttpError
- FailedDependencyHttpError
- ForbiddenHttpError
- FormDataRequest
- An implementation of Request for multipart/form-data requests
- GatewayTimeoutHttpError
- GoneHttpError
- HttpError
- HttpVersionNotSupportedHttpError
- ImageResponse
- Types a response as successful and a general purpose image (with PNG content type)
- ImgurApiAuthorizationInterceptor
- ImgurNetworkingClient
- A general purpose networking client to interact with Imgur REST API
- InsufficientStorageHttpError
- Interceptor
- InternalServerErrorHttpError
- JpegImageResponse
- Types a response as successful and that has the JPEG content-type
- JsonResponse
- Types a response as successful and that has the JSON content-type
- LengthRequiredHttpError
- LockedHttpError
- LoopDetectedHttpError
- MethodNotAllowedHttpError
- NetworkAuthenticationRequiredHttpError
- NetworkingClient
-
Base networking client for communicating with external HTTP Web APIs.
Internally uses Dart
http
client library and requires one instance of it to start the client. This is done to allow mocking of networking requests. - NetworkingGitHubRepository
- Describes some details of a GitHub repository, needed for creating instances of RawGitHubNetworkingClient.
- NoInternetConnectionError
- NotAcceptableHttpError
- NotExtendedHttpError
- NotFoundHttpError
- NotImplementedHttpError
- PayloadTooLargeHttpError
- PaymentRequiredHttpError
- PlainTextResponse
- Types a response as successful and that has the plain/text content-type
- PngImageResponse
- Types a response as successful and that has the PNG content-type
- PreconditionFailedHttpError
- PreconditionRequiredHttpError
- ProxyAuthenticationRequiredHttpError
- ProxyConfiguration
- ProxyNetworkingClient
-
A NetworkingClient which relays requests to a proxy web server. No initial
CONNECT
request is sent, as this proxy client acts on an API level. - RangeNotSatisfiableHttpError
- RawGitHubNetworkingClient
- A general purpose networking client to interact with GitHub Raw API
- RelayProxyConfiguration
- RelayProxyNetworkingClient
- Request
- Mimics the schema of an HTTP request
- RequestError
- RequestHeaderFieldsTooLargeHttpError
- RequestInterceptor
- RequestTimeoutHttpError
- Response
- Defines an abstract view of an HTTP response
- ResponseInterceptor
- SuccessResponse
- Types a response as successful (typical status code range: 200-299)
- TimeoutError
- TooEarlyHttpError
- TooManyRequestsHttpError
- UnknownError
- UnknownHttpError
- UnprocessableEntityHttpError
- UnsupportedMediaTypeHttpError
- UpgradeRequiredHttpError
- UriTooLongHttpError
- VariantAlsoNegotiatesHttpError
Enums
- ContentType
- HttpVerb
- Defines every supported HTTP method
Mixins
- Jsonable
- Mixin that interops in responses that can unmarsh the response body as JSON objects and arrays
Extensions
- ContentTypeExtension on ContentType
- HttpVerbExtension on HttpVerb
- Applies an extension on HttpVerb enum, in order to provide a way to get the HTTP verb as string.
- MapExtension on Map
Constants
- kAlwaysIncludeBodyHeader → const String
- kBypassHeadersExposeHeader → const String
-
kDefaultInterceptors
→ const List<
Interceptor> - kDefaultTimeoutDuration → const Duration
- kRelayDestinationServerUrlHeader → const String
Functions
-
mapHttpResponseAsResponse(
StreamedResponse httpResponse) → Future< Response> -
resolveUri(
{required Uri baseUrl, required String endpoint, Map< String, String> ? queryParameters}) → Uri
Typedefs
- OnProxySendCallback = Request Function({required Request request})