DICOM PS3.18 2024c - Web Services

8.4.3 Payload Header Fields

The Payload Header Fields contain metadata describing the payload, not the representation it contains. Table 8.4.3-1 describes the payload header fields, and the usage requirements (Mandatory, Conditional, or Optional) for when they shall be present.

Table 8.4.3-1. Payload Header Fields

Name

Value

Usage

Description

Content-Length

uint

C

Specifies the decimal number of octets in the payload.

If the response message has a payload and does not have a Transfer-Encoding header field, it shall have a Content-Length header field specifying the length in octets (bytes) of the payload.

Shall not be present if the message has a Transfer-Encoding header field. Shall be present otherwise, even is the size of the payload is zero.

Content-Range

range

C

Specifies the range of a partial representation contained in a payload. See [RFC7233] Section 4.2.

The Content-Range header field is sent in a single part 206 (Partial Content) response to indicate the partial range of the selected representation enclosed as the message payload.

It is sent in each part of a multipart 206 response to indicate the range enclosed within each body part.

It is sent in 416 (Range Not Satisfiable) responses to provide information about the selected representation.

Transfer-Encoding

encoding

C

See [RFC7230] Section 3.3.1.

Shall be present if transfer-encodings have been applied to the payload.


DICOM PS3.18 2024c - Web Services