@Header(value="Transfer-Encoding") public class TransferEncoding extends BasicStringHeader
The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity.
Transfer-Encoding: chunked
Transfer-Encoding = "Transfer-Encoding" ":" 1#transfer-coding
Transfer-codings are defined in section 3.6. An example is:
Transfer-Encoding: chunked
If multiple encodings have been applied to an entity, the transfer-codings MUST be listed in the order in which they were applied. Additional information about the encoding parameters MAY be provided by other entity-header fields not defined by this specification.
Many older HTTP/1.0 applications do not understand the Transfer-Encoding header.
Constructor and Description |
---|
TransferEncoding(Object value)
Constructor.
|
TransferEncoding(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static TransferEncoding |
of(Object value)
Convenience creator.
|
static TransferEncoding |
of(Supplier<?> value)
Convenience creator using supplier.
|
assertString, getValue, of, of
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, hashCode, isSupplier, of, ofPair, toString, unwrap
public TransferEncoding(Object value)
public TransferEncoding(String value)
value
- The header value.public static TransferEncoding of(Object value)
value
- The header value.
String
TransferEncoding
object.public static TransferEncoding of(Supplier<?> value)
Header value is re-evaluated on each call to BasicStringHeader.getValue()
.
value
- The header value supplier.
String
TransferEncoding
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.