Overview
-
module Protocol-
module HTTP-
class AcceptEncodingA middleware that sets the accept-encoding header and decodes the response according to the content-encoding header.
-
module Body-
class BufferedA body which buffers all its contents.
-
class CompletableInvokes a callback once the body has completed, either successfully or due to an error.
-
class ZStreamA body which compresses or decompresses the contents using the DEFLATE or GZIP algorithm.
-
class DeflateA body which compresses the contents using the DEFLATE or GZIP algorithm.
-
class DigestableInvokes a callback once the body has finished reading.
-
class FileA body which reads from a file.
-
class HeadRepresents a body suitable for HEAD requests, in other words, a body that is empty and has a known length.
-
class InflateA body which decompresses the contents using the DEFLATE or GZIP algorithm.
-
class ReadableRepresents a readable input streams.
-
module ReaderGeneral operations for interacting with a request or response body.
-
class RewindableA body which buffers all its contents as it is read.
-
class StreamThe input stream is an IO-like object which contains the raw HTTP POST data. When applicable, its external encoding must be “ASCII-8BIT” and it must be opened in binary mode, for Ruby 1.9 compatibility. The input stream must respond to gets, each, read and rewind.
-
module ReaderThis provides a read-only interface for data, which is surprisingly tricky to implement correctly.
-
module StreamableA body that invokes a block that can read and write to a stream.
-
class OutputA output stream that can be written to by a block.
-
class ConsumedErrorRaised when a streaming body is consumed more than once.
-
class BodyA streaming body that can be read from and written to.
-
class ResponseBodyA response body is used on the server side to generate the response body using a block.
-
class RequestBodyA request body is used on the client side to generate the request body using a block.
-
class WrapperWrapping body instance. Typically you'd override
#read. -
class WritableA dynamic body which you can write to and read from.
-
class ClosedAn error indicating that the body has been closed and no further writes are allowed.
-
class OutputThe output interface for writing chunks to the body.
-
-
-
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.
-
module BadRequestRepresents a bad request error (as opposed to a server error).
-
class DuplicateHeaderErrorRaised when a singleton (e.g.
content-length) header is duplicated in a request or response. -
module Header-
class AcceptThe
accept-content-typeheader represents a list of content-types that the client can accept. -
class AcceptCharsetThe
accept-charsetheader represents a list of character sets that the client can accept. -
class AcceptEncodingThe
accept-encodingheader represents a list of encodings that the client can accept. -
class AcceptLanguageThe
accept-languageheader represents a list of languages that the client can accept. -
class AuthorizationUsed for basic authorization.
-
class CacheControlRepresents the
cache-controlheader, which is a list of cache directives. -
class ConnectionRepresents the
connectionHTTP header, which controls options for the current connection. -
class CookieThe
cookieheader contains stored HTTP cookies previously sent by the server with theset-cookieheader. -
class SetCookieThe
set-cookieheader sends cookies from the server to the user agent. -
class DateThe
dateheader represents the date and time at which the message was originated. -
class DigestThe
digestheader provides a digest of the message body for integrity verification. -
class ETagThe
etagheader represents the entity tag for a resource. -
class ETagsThe
etagsheader represents a list of entity tags (ETags) for resources. -
class MultipleRepresents headers that can contain multiple distinct values separated by newline characters.
-
class PriorityRepresents the
priorityheader, used to indicate the relative importance of an HTTP request. -
module QuotedStringHandling of HTTP quoted strings.
-
class ServerTimingThe
server-timingheader communicates performance metrics about the request-response cycle to the client. -
class SplitRepresents headers that can contain multiple distinct values separated by commas.
-
class TEThe
teheader indicates the transfer encodings the client is willing to accept. AKAaccept-transfer-encoding. How we ended up withteinstead ofaccept-transfer-encodingis a mystery lost to time. -
class TrailerRepresents headers that can contain multiple distinct values separated by commas.
-
class TransferEncodingThe
transfer-encodingheader indicates the encoding transformations that have been applied to the message body. -
class VaryRepresents the
varyheader, which specifies the request headers a server considers when determining the response.
-
-
class HeadersHeaders are an array of key-value pairs. Some header keys represent multiple values.
-
class MergedUsed for merging objects into a sequential list of headers. Normalizes header keys and values.
-
class MethodsProvides a convenient interface for commonly supported HTTP methods.
-
class MiddlewareThe middleware interface provides a convenient wrapper for implementing HTTP middleware.
-
class BuilderA convenient interface for constructing middleware stacks.
-
module OkayA simple middleware that always returns a 200 response.
-
module NotFoundA simple middleware that always returns a 404 response.
-
module HelloWorldA simple middleware that always returns "Hello World!".
-
-
class PeerProvide a well defined, cached representation of a peer (address).
-
class ReferenceA relative reference, excluding any authority. The path part of an HTTP request.
-
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 URLHelpers for working with URLs.
-
-