public interface ContentLengthStrategy
Modifier and Type | Method and Description |
---|---|
long |
determineLength(HttpMessage message)
Returns length of the given message in bytes.
|
static final int IDENTITY
static final int CHUNKED
long determineLength(HttpMessage message) throws HttpException
IDENTITY
if the end of the
message will be delimited by the end of connection, or CHUNKED
if the message is chunk codedmessage
- HTTP messageIDENTITY
, or CHUNKED
HttpException
- in case of HTTP protocol violationCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.