Class H2ResponseContent
java.lang.Object
org.apache.hc.core5.http.protocol.ResponseContent
org.apache.hc.core5.http2.protocol.H2ResponseContent
- All Implemented Interfaces:
HttpResponseInterceptor
HTTP/2 compatible extension of
ResponseContent
.- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(HttpResponse response, EntityDetails entity, HttpContext context) Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.
-
Field Details
-
INSTANCE
Singleton instance.- Since:
- 5.2
-
-
Constructor Details
-
H2ResponseContent
public H2ResponseContent() -
H2ResponseContent
public H2ResponseContent(boolean overwrite)
-
-
Method Details
-
process
public void process(HttpResponse response, EntityDetails entity, HttpContext context) throws HttpException, IOException Description copied from class:ResponseContent
Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers.- Specified by:
process
in interfaceHttpResponseInterceptor
- Overrides:
process
in classResponseContent
- Parameters:
response
- The HttpResponse to modify.entity
- the request entity details ornull
if not availablecontext
- Unused.- Throws:
HttpException
- in case of an HTTP protocol violationIOException
- in case of an I/O error
-