android-components / mozilla.components.concept.fetch

Package mozilla.components.concept.fetch

Types

Name Summary
Client abstract class Client
A generic Client for fetching resources via HTTP/s.
Header data class Header
Represents a Header containing of a name and value.
Headers interface Headers : Iterable<Header>
A collection of HTTP Headers (immutable) of a Request or Response.
MutableHeaders class MutableHeaders : Headers, MutableIterable<Header>
A collection of HTTP Headers (mutable) of a Request or Response.
Request data class Request
The Request data class represents a resource request to be send by a Client.
Response data class Response : Closeable
The Response data class represents a response to a Request send by a Client.

Extensions for External Classes

Name Summary
kotlin.collections.List  

Properties

Name Summary
isClientError val Response.isClientError: Boolean
Returns true if the response was a client error (status in the range 400-499) or false otherwise.
isSuccess val Response.isSuccess: Boolean
Returns true if the response was successful (status in the range 200-299) or false otherwise.