Overview
-
module Async-
module HTTP-
module Body-
class HijackA body which is designed for hijacked server responses - a response which uses a block to read and write the request and response bodies respectively.
-
class PipeA bidirectional pipe that connects an input body to an output body using a Unix socket pair.
-
class StatisticsInvokes a callback once the body has finished reading.
-
-
class ClientAn HTTP client that manages persistent connections to a specific endpoint, with automatic retries for idempotent requests.
-
class EndpointRepresents a way to connect to a remote HTTP server.
-
class InternetA high-level HTTP client for making requests to any URL, managing a pool of persistent connections keyed by host.
-
module Middleware-
class LocationRedirectorA client wrapper which transparently handles redirects to a given maximum number of hops.
-
class TooManyRedirectsRaised when the maximum number of redirects has been exceeded.
-
-
-
module Mock-
class EndpointThis is an endpoint which bridges a client with a local server.
-
-
module ProtocolA protocol specifies a way in which to communicate with a remote peer.
-
class ConfiguredA protocol wrapper that forwards pre-configured options to client and server creation.
-
module ConfigurableProvides a
newmethod that creates aclass Async::HTTP::Protocol::Configuredwrapper, allowing protocols to be instantiated with custom options. -
module DefaultonThis module provides a default instance of the protocol, which can be used to create clients and servers. The name is a play on "Default" + "Singleton".
-
class HTTPHTTP is an http:// server that auto-selects HTTP/1.1 or HTTP/2 by detecting the HTTP/2 connection preface.
-
module HTTP1Provides HTTP/1.0 and HTTP/1.1 client and server implementations.
-
class ClientAn HTTP/1 client connection that sends requests and reads responses.
-
class ConnectionAn HTTP/1 connection that wraps an IO stream with version and state tracking.
-
class FinishableKeeps track of whether a body is being read, and if so, waits for it to be closed.
-
class RequestAn incoming HTTP/1 request parsed from the connection.
-
class ResponseAn HTTP/1 response received from a server.
-
class ServerAn HTTP/1 server connection that receives requests and sends responses.
-
-
module HTTP10Provides an HTTP/1.0 client and server protocol implementation.
-
module HTTP11Provides an HTTP/1.1 client and server protocol implementation.
-
module HTTP2Provides an HTTP/2 client and server protocol implementation.
-
class ClientAn HTTP/2 client connection that sends requests and reads responses.
-
module ConnectionProvides shared connection behaviour for HTTP/2 client and server connections.
-
class InputA writable body which requests window updates when data is read from it.
-
class OutputWrites body data to an HTTP/2 stream, respecting flow control windows.
-
class RequestTypically used on the server side to represent an incoming request, and write the response.
-
class StreamRepresents the HTTP/2 stream associated with an incoming server-side request.
-
-
class ResponseTypically used on the client side for writing a request and reading the incoming response.
-
class StreamRepresents the HTTP/2 stream associated with an outgoing client-side response.
-
-
class ServerAn HTTP/2 server connection that receives requests and sends responses.
-
class StreamAn HTTP/2 stream that manages headers, input data, and output data for a single request/response exchange.
-
-
class HTTPSA server that supports both HTTP1.0 and HTTP1.1 semantics by detecting the version of the request.
-
class RequestAn incoming HTTP request generated by server protocol implementations.
-
class ResponseAn HTTP response received from a server via client protocol implementations.
-
-
class ProxyWraps a client, address and headers required to initiate a connectio to a remote host using the CONNECT verb.
-
class ConnectFailureRaised when a CONNECT tunnel through a proxy cannot be established.
-
module ClientExtends
class Async::HTTP::Clientwith proxy capabilities.
-
-
class ServerAn HTTP server that accepts connections on a specific endpoint and dispatches requests to an application handler.
-
class StatisticsTracks response timing statistics including time to first byte and total duration.
-
-
-
Provider