@Contract(threading=IMMUTABLE) public class H2ResponseContent extends ResponseContent
ResponseContent.
 This interceptor is essential for the HTTP protocol conformance and the correct operation of the server-side message processing pipeline.
| Modifier and Type | Field and Description | 
|---|---|
| static H2ResponseContent | INSTANCESingleton instance. | 
| Constructor and Description | 
|---|
| H2ResponseContent() | 
| H2ResponseContent(boolean overwrite) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | process(HttpResponse response,
       EntityDetails entity,
       HttpContext context)Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers. | 
public static final H2ResponseContent INSTANCE
public H2ResponseContent()
public H2ResponseContent(boolean overwrite)
public void process(HttpResponse response, EntityDetails entity, HttpContext context) throws HttpException, IOException
ResponseContentprocess in interface HttpResponseInterceptorprocess in class ResponseContentresponse - The HttpResponse to modify.entity - the request entity details or null if not availablecontext - Unused.HttpException - in case of an HTTP protocol violationIOException - in case of an I/O errorCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.