Package com.mobwith.httpmodule.internal.connection
See: Description
-
Class Summary Class Description ConnectInterceptor Opens a connection to the target server and proceeds to the next interceptor. ConnectionSpecSelector Handles the connection spec fallback strategy: When a secure socket connection fails due to a handshake / protocol problem the connection may be retried with different protocols. RealConnection RouteDatabase A blacklist of failed routes to avoid when creating a new connection to a target address. RouteException An exception thrown to indicate a problem connecting via a single Route. Selection A set of selected Routes. RouteSelector Selects routes to connect to an origin server. StreamAllocationReference StreamAllocation This class coordinates the relationship between three entities: - Connections: physical socket connections to remote servers. These are potentially slow to establish so it is necessary to be able to cancel a connection currently being connected.
- Streams: logical HTTP request/response pairs that are layered on connections. Each connection has its own allocation limit, which defines how many concurrent streams that connection can carry. HTTP/1.x connections can carry 1 stream at a time, HTTP/2 typically carry multiple.
- Calls: a logical sequence of streams, typically an initial request and its follow up requests. We prefer to keep all streams of a single call on the same connection for better behavior and locality.