@Contract(threading=STATELESS) public interface ContentLengthStrategy
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
CHUNKED
Message body chunk coded
|
static long |
UNDEFINED
Message body not explicitly delineated.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 CHUNKEDHttpException - in case of HTTP protocol violationCopyright © 2023. All rights reserved.