Class H2RequestContent

java.lang.Object
org.apache.hc.core5.http.protocol.RequestContent
org.apache.hc.core5.http2.protocol.H2RequestContent
All Implemented Interfaces:
org.apache.hc.core5.http.HttpRequestInterceptor

@Contract(threading=IMMUTABLE) public class H2RequestContent extends org.apache.hc.core5.http.protocol.RequestContent
HTTP/2 compatible extension of RequestContent.

This interceptor is essential for the HTTP protocol conformance and the correct operation of the client-side message processing pipeline.

Since:
5.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final H2RequestContent
    Singleton instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    H2RequestContent(boolean overwrite)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    process(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context)
     

    Methods inherited from class org.apache.hc.core5.http.protocol.RequestContent

    validateOptionsContentType

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final H2RequestContent INSTANCE
      Singleton instance.
      Since:
      5.2
  • Constructor Details

    • H2RequestContent

      public H2RequestContent()
    • H2RequestContent

      public H2RequestContent(boolean overwrite)
  • Method Details

    • process

      public void process(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      process in interface org.apache.hc.core5.http.HttpRequestInterceptor
      Overrides:
      process in class org.apache.hc.core5.http.protocol.RequestContent
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException