org.apache.hc.core5.http.protocol

## Interface HttpProcessor

- All Superinterfaces:
    HttpRequestInterceptor, HttpResponseInterceptor
  All Known Implementing Classes:
    DefaultHttpProcessor

      @Contract(threading=STATELESS)
      public interface HttpProcessor
      extends HttpRequestInterceptor, HttpResponseInterceptor

  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.

  Usually the order in which interceptors are executed should not matter as long as they do not depend on a particular state of the execution context. If protocol interceptors have interdependencies and therefore must be executed in a particular order, they should be added to the protocol processor in the same sequence as their expected execution order.

  Protocol interceptors must be implemented as thread-safe. Similarly to servlets, protocol interceptors should not use instance variables unless access to those variables is synchronized.

  Since:
    4.0

- - ### Method Summary

    - ### Methods inherited from interface org.apache.hc.core5.http.HttpRequestInterceptor

      `process`

    - ### Methods inherited from interface org.apache.hc.core5.http.HttpResponseInterceptor

      `process`

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