A set of HTTP headers identified by case insensitive keys
Exception thrown when an error occurs during an HTTP request.
Exception thrown when an error occurs during an HTTP request.
This exception can occur because of network issues.
Builds an HTTP request.
Builds an HTTP request.
The request is sent using send. A request can be sent multiple times. Each time yields a Future[HttpResponse] which either succeeds with an HttpResponse or fails with an HttpNetworkError
An HTTP response obtained via an HttpRequest
Exception thrown when an error occurs during an HTTP request.
Exception thrown when an error occurs during an HTTP request.
This exception can occur because of bad HTTP status code (status >= 400).
This exception must be constructed via the companion object in order to factor out error messages.
A set of HTTP headers identified by case insensitive keys
A Map[CaseInsensitiveString, String] would conform to the strict Map specification but it would make the API ugly, forcing the explicit usage of CaseInsensitiveString instead of string.
That's why we have the HeaderMap class to represent HTTP headers in a map like interface which is nice to use. It is however not *exactly* a map because different keys can map to the same value if they are case-insensitive equivalent.
Required for MapLike implementation. Should always be set to String.