Lines Matching defs:message

54  * The transfer-length of a message is the length of the message-body as it appears in the 
55 * message; that is, after any transfer-codings have been applied. When a message-body is
56 * included with a message, the transfer-length of that body is determined by one of the
60 * 1.Any response message which "MUST NOT" include a message-body (such as the 1xx, 204,
63 * message.
68 * coding (section 3.6), unless the message is terminated by closing the connection.
77 * header field is present). If a message is received with both a
82 * 4.If the message uses the media type "multipart/byteranges", and the ransfer-length is not
91 * delimit the message using methods defined in items 1,3 or 5 of
100 * For compatibility with HTTP/1.0 applications, HTTP/1.1 requests containing a message-body
102 * compliant. If a request contains a message-body and a Content-Length is not given, the
104 * message, or with 411 (length required) if it wishes to insist on receiving a valid
108 * (section 3.6), thus allowing this mechanism to be used for messages when the message
116 * the transfer-coding is a property of the message, not of the original entity.
135 * Whenever a transfer-coding is applied to a message-body, the set of transfer-codings MUST
136 * include "chunked", unless the message is terminated by closing the connection. When the
138 * message-body. The "chunked" transfer-coding MUST NOT be applied more than once to a
139 * message-body. These rules allow the recipient to determine the transfer-length of the
140 * message (section 4.4).
145 * been applied to the message body in order to safely transfer it between the sender and the
147 * the message, not of the entity.
167 * Applications SHOULD use this field to indicate the transfer-length of the message-body,
188 public long determineLength(final HttpMessage message) throws HttpException {
189 if (message == null) {
190 throw new IllegalArgumentException("HTTP message may not be null");
195 Header transferEncodingHeader = message.getFirstHeader(HTTP.TRANSFER_ENCODING);
196 Header contentLengthHeader = message.getFirstHeader(HTTP.CONTENT_LEN);
200 if (message.getProtocolVersion().lessEquals(HttpVersion.HTTP_1_0)) {
203 message.getProtocolVersion());