duckma_client library

Classes

BaseInterceptor
ConnectivityInterceptor
ConnectivityRequestRetrier
HttpClient
The interface for HTTP clients that take care of maintaining persistent connections across multiple requests to the same server.
RequestRetrier

Extensions

ConnectivityExtension on Connectivity
OptionsExtension on Options
ResponseExtension on Response<T>

Exceptions / Errors

BadGatewayException
This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.
BadRequestException
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
ConflictException
This response is sent when a request conflicts with the current state of the server.
ExpectationFailedException
This response code means the expectation indicated by the Expect request header field cannot be met by the server.
ForbiddenException
The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource.
GatewayTimeoutException
This error response is given when the server is acting as a gateway and cannot get a response in time.
GoneException
This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
HttpClientException
The parent of every Client error responses.
HttpException
The root Http exception.
HttpServerException
The parent type of every server error responses, e.g: 500, 501, 505 etc.
InternalServerErrorException
The server has encountered a situation it does not know how to handle.
LengthRequiredException
The server rejects the request because the Content-Length header field is not defined, but the server requires it.
MethodNotAllowedException
The request method is known by the server but is not supported by the target resource.
NetworkAuthenticationRequiredException
Indicates that the client needs to authenticate to gain network access.
NotAcceptableException
This response is sent when the web server, after performing content negotiation, doesn't find any content that conforms to the criteria given by the user agent.
NotFoundException
The server can not find the requested resource.
NotImplementedException
The request method is not supported by the server and cannot be handled.
PayloadTooLargeException
Request entity is larger than limits defined by server.
PaymentRequiredException
This response code is reserved for future use.
PreconditionFailedException
The client has indicated preconditions in its headers which the server does not meet.
ProxyAuthenticationRequiredException
This is similar to UnauthorizedException but authentication is needed to be done by a proxy.
RangeNotSatisfiableException
The range specified by the Range header field in the request cannot be fulfilled.
RequestTimeoutException
This response is sent on an idle connection by some servers, even without any previous request by the client.
ServiceUnavailableException
This indicates that the server is not ready to handle the request.
UnauthorizedException
Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated".
UnKnownErrorException
The generic error, this will be thrown if response statusCode is not one of the handled cases, e.g: serverInsufficientStorage code: 507 etc.
UnsupportedMediaTypeException
The media format of the requested data is not supported by the server, so the server is rejecting the request.
UriTooLongException
The URI requested by the client is longer than the server is willing to interpret.
VersionNotSupportedException
The HTTP version used in the request is not supported by the server.