## Uses of Interface
org.apache.hc.core5.http.HttpRequestInterceptor

- Packages that use HttpRequestInterceptor
  Package | Description
  --- | ---
  org.apache.hc.core5.http.protocol | Core HTTP protocol interceptors.
  org.apache.hc.core5.http2.protocol | HTTP/2 protocol interceptors.

- - ### Uses of HttpRequestInterceptor in org.apache.hc.core5.http.protocol

    Subinterfaces of HttpRequestInterceptor in org.apache.hc.core5.http.protocol
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `HttpProcessor` Collects protocol interceptors that implements the 'Chain of Responsibility' pattern, where each individual protocol interceptor is expected to work on a particular aspect of the HTTP protocol the interceptor is responsible for.

    Classes in org.apache.hc.core5.http.protocol that implement HttpRequestInterceptor
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultHttpProcessor` Default immutable implementation of `HttpProcessor`.
    `class` | `ForwardedRequest` This request interceptor can be used by an HTTP proxy or an intermediary to add a Forwarded header to outgoing request messages.
    `class` | `RequestConformance` This request interceptor is responsible for execution of the protocol conformance checks on incoming request messages.
    `class` | `RequestConnControl` This request interceptor is responsible for adding `Connection` header to outgoing requests, which is essential for managing persistence of `HTTP/1.0` connections.
    `class` | `RequestContent` This request interceptor is responsible for delimiting the message content by adding `Content-Length` or `Transfer-Content` headers based on the properties of the enclosed entity and the protocol version.
    `class` | `RequestDate` This request interceptor is responsible for adding `Date` header to outgoing request messages.
    `class` | `RequestExpectContinue` This request interceptor is responsible for activation of the 'expect-continue' handshake by adding a `Expect` header describing client expectations.
    `class` | `RequestTargetHost` This request interceptor is responsible for adding `Host` header to outgoing request messages.
    `class` | `RequestUserAgent` This request interceptor is responsible for adding `User-Agent` header.
    `class` | `RequestValidateHost` This request interceptor is responsible for copying `Host` header value to `HttpRequest.setAuthority(URIAuthority)` of incoming request messages.
    `class` | `ViaRequest` This request interceptor can be used by an HTTP proxy or intemediary to add the `HttpHeaders.VIA` HTTP header to outgoing request messages.

    Fields in org.apache.hc.core5.http.protocol declared as HttpRequestInterceptor
    Modifier and Type | Field and Description
    --- | ---
    `static HttpRequestInterceptor` | ForwardedRequest.`INSTANCE` Singleton instance.
    `static HttpRequestInterceptor` | RequestTargetHost.`INSTANCE` Singleton instance.
    `static HttpRequestInterceptor` | RequestContent.`INSTANCE` Singleton instance.
    `static HttpRequestInterceptor` | RequestConnControl.`INSTANCE` Singleton instance.
    `static HttpRequestInterceptor` | RequestUserAgent.`INSTANCE` Singleton instance.
    `static HttpRequestInterceptor` | RequestDate.`INSTANCE` Singleton instance.
    `static HttpRequestInterceptor` | ViaRequest.`INSTANCE` Singleton instance.

    Methods in org.apache.hc.core5.http.protocol with parameters of type HttpRequestInterceptor
    Modifier and Type | Method and Description
    --- | ---
    `HttpProcessorBuilder` | HttpProcessorBuilder.`add(HttpRequestInterceptor e)`
    `HttpProcessorBuilder` | HttpProcessorBuilder.`addAll(HttpRequestInterceptor... e)`
    `HttpProcessorBuilder` | HttpProcessorBuilder.`addAllFirst(HttpRequestInterceptor... e)`
    `HttpProcessorBuilder` | HttpProcessorBuilder.`addAllLast(HttpRequestInterceptor... e)`
    `HttpProcessorBuilder` | HttpProcessorBuilder.`addFirst(HttpRequestInterceptor e)`
    `HttpProcessorBuilder` | HttpProcessorBuilder.`addLast(HttpRequestInterceptor e)`

    Constructors in org.apache.hc.core5.http.protocol with parameters of type HttpRequestInterceptor
    Constructor and Description
    `DefaultHttpProcessor(HttpRequestInterceptor... requestInterceptors)`
    `DefaultHttpProcessor(HttpRequestInterceptor[] requestInterceptors, HttpResponseInterceptor[] responseInterceptors)`

    Constructor parameters in org.apache.hc.core5.http.protocol with type arguments of type HttpRequestInterceptor
    Constructor and Description
    `DefaultHttpProcessor(List<HttpRequestInterceptor> requestInterceptors, List<HttpResponseInterceptor> responseInterceptors)`

  - ### Uses of HttpRequestInterceptor in org.apache.hc.core5.http2.protocol

    Classes in org.apache.hc.core5.http2.protocol that implement HttpRequestInterceptor
    Modifier and Type | Class and Description
    --- | ---
    `class` | `H2RequestConnControl` HTTP/2 compatible extension of `RequestConnControl`.
    `class` | `H2RequestContent` HTTP/2 compatible extension of `RequestContent`.
    `class` | `H2RequestTargetHost` HTTP/2 compatible extension of `RequestTargetHost`.
    `class` | `H2RequestValidateHost` HTTP/2 compatible extension of `RequestValidateHost`.

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.