@Contract(threading=STATELESS) public interface ContentLengthStrategy
Modifier and Type | Field and Description |
---|---|
static long |
CHUNKED
Message body chunk coded
|
static long |
UNDEFINED
Message body not explicitly delineated.
|
Modifier and Type | Method and Description |
---|---|
long |
determineLength(HttpMessage message)
Returns length of the given message in bytes.
|
static final long CHUNKED
static final long UNDEFINED
long determineLength(HttpMessage message) throws HttpException
CHUNKED
if the message is
chunk coded, or UNDEFINED
if the message is not explicitly
delineated.message
- HTTP messageUNDEFINED
, or CHUNKED
HttpException
- in case of HTTP protocol violation