@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 |
INSTANCE
Singleton 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
ResponseContent
process
in interface HttpResponseInterceptor
process
in class ResponseContent
response
- 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.