public class HttpAttachments extends Object
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<Boolean> |
PRE_CHUNKED_RESPONSE
If the value
true is attached to the exchange under this key then Undertow will assume that the underlying application
has already taken care of chunking, and will not attempt to add its own chunk markers. |
static AttachmentKey<HeaderMap> |
REQUEST_TRAILERS
Attachment key for request trailers when using chunked encoding.
|
static AttachmentKey<Supplier<HeaderMap>> |
RESPONSE_TRAILER_SUPPLIER
Attachment key for a supplier response trailers.
|
static AttachmentKey<HeaderMap> |
RESPONSE_TRAILERS
Attachment key for response trailers.
|
Constructor and Description |
---|
HttpAttachments() |
public static final AttachmentKey<HeaderMap> REQUEST_TRAILERS
public static final AttachmentKey<HeaderMap> RESPONSE_TRAILERS
RESPONSE_TRAILERS
and RESPONSE_TRAILER_SUPPLIER
will be merged if both exit
with the value supplied by the supplier taking precedence.
Note that if pre chunked streams are being used then the trailers will not be appended to the response, however any
trailers parsed out of the chunked stream will be attached here instead.public static final AttachmentKey<Supplier<HeaderMap>> RESPONSE_TRAILER_SUPPLIER
RESPONSE_TRAILERS
and RESPONSE_TRAILER_SUPPLIER
will be merged if both exit
with the value supplied by the supplier taking precedence.
Note that if pre chunked streams are being used then the trailers will not be appended to the response, however any
trailers parsed out of the chunked stream will be attached here instead.public static final AttachmentKey<Boolean> PRE_CHUNKED_RESPONSE
true
is attached to the exchange under this key then Undertow will assume that the underlying application
has already taken care of chunking, and will not attempt to add its own chunk markers.
This will only take effect if the application has explicitly set the Transfer-Encoding: chunked header.Copyright © 2021 JBoss by Red Hat. All rights reserved.