public interface ContentLengthStrategy
| 限定符和类型 | 方法和说明 |
|---|---|
long |
determineLength(HttpMessage message)
Returns length of the given message in bytes.
|
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 CHUNKEDHttpException - in case of HTTP protocol violation