Overview
-
module Async-
module HTTP-
module Body-
class Hijack < ::Protocol::HTTP::Body::ReadableA 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 Statistics < ::Protocol::HTTP::Body::WrapperInvokes a callback once the body has finished reading.
-
-
class Client < ::Protocol::HTTP::MethodsAn HTTP client that manages persistent connections to a specific endpoint, with automatic retries for idempotent requests.
-
class Endpoint < ::IO::Endpoint::GenericRepresents 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 LocationRedirector < ::Protocol::HTTP::MiddlewareA client wrapper which transparently handles redirects to a given maximum number of hops.
-
class TooManyRedirects < StandardErrorRaised 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 Client < ConnectionAn HTTP/1 client connection that sends requests and reads responses.
-
class Connection < ::Protocol::HTTP1::ConnectionAn HTTP/1 connection that wraps an IO stream with version and state tracking.
-
class Finishable < ::Protocol::HTTP::Body::WrapperKeeps track of whether a body is being read, and if so, waits for it to be closed.
-
class Request < Protocol::RequestAn incoming HTTP/1 request parsed from the connection.
-
class Response < Protocol::ResponseAn HTTP/1 response received from a server.
-
class Server < ConnectionAn 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 Client < ::Protocol::HTTP2::ClientAn HTTP/2 client connection that sends requests and reads responses.
-
module ConnectionProvides shared connection behaviour for HTTP/2 client and server connections.
-
class Input < ::Protocol::HTTP::Body::WritableA 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 Request < Protocol::RequestTypically used on the server side to represent an incoming request, and write the response.
-
class Stream < HTTP2::StreamRepresents the HTTP/2 stream associated with an incoming server-side request.
-
-
class Response < Protocol::ResponseTypically used on the client side for writing a request and reading the incoming response.
-
class Stream < HTTP2::StreamRepresents the HTTP/2 stream associated with an outgoing client-side response.
-
-
class Server < ::Protocol::HTTP2::ServerAn HTTP/2 server connection that receives requests and sends responses.
-
class Stream < ::Protocol::HTTP2::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 Request < ::Protocol::HTTP::RequestAn incoming HTTP request generated by server protocol implementations.
-
class Response < ::Protocol::HTTP::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 ConnectFailure < StandardErrorRaised when a CONNECT tunnel through a proxy cannot be established.
-
module ClientExtends
class Async::HTTP::Clientwith proxy capabilities.
-
-
class Server < ::Protocol::HTTP::MiddlewareAn 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