length
Description
The length
header is used to indicate the decimal length in octets of the attached body. This must be used in any request or response that contains a body, but it may be omitted if there is no body.
Syntax
In the following grammar, whole
is any whole number (zero or a positive integer).
header ::= "length=" whole
Example
length=45
Support
As request header
Request bodies aren't currently a part of the SDTP sepcification, they are only present for potential future expansion.
As response header
Program | Support | Notes |
---|---|---|
SDTPBrowser | Yes | The length header is used to correctly read the full response. |
SDTPServer | Yes | The length header is generated for all GET responses to indicate the length of the response body. For HEAD requests, it indicates the length of the body which would be returned if GET was used to fetch the resource. |