Package org.apache.hc.client5.http.protocol
package org.apache.hc.client5.http.protocol
HTTP protocol interceptors that enable advanced functionality
such as HTTP state management and authentication state caching.
-
ClassDescriptionAdaptor class that provides convenience type safe setters and getters for common
HttpContext
attributes used in the course of HTTP request execution.This class represents a collection ofURI
s used as redirect locations.A strategy for determining if an HTTP request should be redirected to a new location in response to an HTTP response received from the target server.Request interceptor that matches cookies available in the currentCookieStore
to the request being executed and generates correspondingCookie
request headers.Deprecated.Do not use.This protocol interceptor is responsible for adding theConnection
header to the outgoing requests, which is essential for managing persistence ofHTTP/1.0
connections.Request interceptor that adds default request headers.RequestExpectContinue is responsible for enabling the 'expect-continue' handshake by addingExpect
header.Response interceptor that populates the currentCookieStore
with data contained in response cookies received in the given the HTTP response.