Package-level declarations
Types
A base implementation of the ErrorResponseInterceptor interface used for intercepting HTTP responses. This will only return NetworkResponse.Error, never null. And will attempt to map whatever response body to a GenericAPIErrorResponse object, the "default" error type when dealing with Wire API.
An interceptor responsible for handling federation-related error responses in an HTTP call.
Checks whether the HTTP response has a status code of 401 (Unauthorized). If the response status code matches HttpStatusCode.Unauthorized, it maps the response to a NetworkResponse.Error containing an KaliumException.Unauthorized exception with the HTTP status code as its error code.
Functions
If the request is successful, perform mapping and create a new Success with its result
Wraps a producer of HttpResponse and attempts to parse the server response based on the BodyType.
Handles an HTTP response with an error status, transforming it into a corresponding NetworkResponse.