module HTTP
Nested Classes and Modules
class AcceptEncodingA middleware that sets the accept-encoding header and decodes the response according to the content-encoding header.
class ContentEncodingEncode a response according the the request's acceptable encodings.
class CookieRepresents an individual cookie key-value pair.
class ErrorA generic, HTTP protocol error.
class RefusedErrorRaised when an HTTP stream or request was refused before any processing occurred. In the case of requests, it indicates that the request was refused before any processing occurred, and can be safely retried.
class RemoteErrorRaised when the remote endpoint fails while processing an HTTP stream or request. This error does not indicate whether application processing occurred. Where available, the protocol-specific error should be attached as the cause.
module BadRequestRepresents a bad request error (as opposed to a server error). This is used to indicate that the request was malformed or invalid.
class DuplicateHeaderErrorRaised when a singleton (e.g.
content-length) header is duplicated in a request or response.class InvalidTrailerErrorRaised when an invalid trailer header is encountered in headers.
class HeadersHeaders are an array of key-value pairs. Some header keys represent multiple values.
class MethodsProvides a convenient interface for commonly supported HTTP methods.
class MiddlewareThe middleware interface provides a convenient wrapper for implementing HTTP middleware.
class PeerProvide a well defined, cached representation of a peer (address).
module QuotedStringHandling of HTTP quoted strings.
class RequestRepresents an HTTP request which can be used both server and client-side.
class ResponseRepresents an HTTP response which can be used both server and client-side.
module StatusHTTP status codes and their human-readable descriptions.
Definitions
RequestRefusedError = RefusedError
- deprecated
Signature
- deprecated
Use
class Protocol::HTTP::RefusedErrorinstead.
TOKEN = /[!#$%&'*+\-.^_`|~0-9A-Z]+/i
According to https://tools.ietf.org/html/rfc7231#appendix-C
QVALUE = /0(\.[0-9]{0,3})?|1(\.[0]{0,3})?/
https://tools.ietf.org/html/rfc7231#section-5.3.1