http_api library Null safety

Classes

An abstract class that lets you create your own link
BaseApi
This class is a simple wrapper around http library it's main target is to handle auth headers.
CacheKey
CacheManager
Base class for implementing cachce managers.
DataType
To create own dev-only ApiLink, extend this class. DebugLinks will NOT be present in release builds. They are ignored by ApiLink.chain method.
FileField
Represents File that can be attached to BaseApiRequest so can be sent to API with FormDataRequest
FileFieldWithFile
FileFieldWithStream
FormData
A class to create readable "multipart/form-data" streams. It can be used to submit forms and file uploads to http server.
FormDataRequest
A multipart/form-data request.
This ApiLink takes headers specified by headersToMap argument from response headers and then put to the next request headers.
HttpMethod
HttpProgressRequest
InMemoryCache
Simplest CacheManager implementation that stores ApiResponses in memory. The cache will be cleared, along with api 'dispose' method invocation.
LoggerLink is DebugLink that prints request details to console.
MediaType
A class representing an HTTP media type, as used in Accept and Content-Type headers.
ObjectId
ObjectId
Request
Response

Mixins

Cache<T extends CacheManager>
Base class for implementing cache providers.
Serializable

Constants

boundaryCharacters → const List<int>
All character codes that are valid in multipart boundaries.
<int>[43, 95, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 1…

Functions

isPlainAscii(String string) bool
Returns whether string is composed entirely of ASCII-compatible characters.

Typedefs

NextFunction = Future<Response?>? Function(Request request)
NextHandler = Future<Response> Function(Request request, NextFunction next)
OnProgress = void Function(int bytesUploaded, int totalBytes)
VoidFunction = void Function()

Exceptions / Errors

ApiError
Base class for exceptions thrown from the http_api package.
ApiException
Base class for exceptions thrown from the http_api package.
RequestException