## 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` HTTP protocol processor is a collection of 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` | `RequestConnControl` RequestConnControl is responsible for adding `Connection` header to the outgoing requests, which is essential for managing persistence of `HTTP/1.0` connections.
    `class` | `RequestContent` RequestContent is the most important interceptor for outgoing requests.
    `class` | `RequestDate` RequestDate interceptor is responsible for adding `Date` header to the outgoing requests This interceptor is optional for client side protocol processors.
    `class` | `RequestExpectContinue` RequestExpectContinue is responsible for enabling the 'expect-continue' handshake by adding `Expect` header.
    `class` | `RequestTargetHost` RequestHostOutgoing is responsible for adding `Host` header to the outgoing message.
    `class` | `RequestUserAgent` RequestUserAgent is responsible for adding `User-Agent` header.
    `class` | `RequestValidateHost` RequestTargetHost is responsible for copying `Host` header value to `HttpRequest.setAuthority(URIAuthority)` of the incoming message.

    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–2020 The Apache Software Foundation. All rights reserved.