HTTP Content-Length field
ContentLengthField object is an HTTP header field in a request or a
response message that specifies the length of the payload in bytes.
MATLAB® requires all outbound messages with a payload to contain a Content-Length field. If a message contains a nonempty body, then MATLAB creates a Content-Length field based on the length of the data. However, for chunked data transfers, no field is added. For more information, see RFC 7231, section 3.3.2. Content-Length.
Response messages might or might not contain this field.
For information on class attributes, see Class Attributes.
Name— Header field name
Header field name, specified as
Value— Length of payload
Length of payload in bytes, specified as a nonnegative integer or a string that evaluates to a nonnegative integer.
|Add fields to HeaderField array|
|Remove fields from header field array|
|Change existing values in HeaderField array|
|Change values in or add fields to array of HeaderFields|
|Return header fields matching name or class|
|Compare two HeaderField arrays|
|Convert header field value like another header field|
|Parse header field value and return as strings|
|Display supported HeaderField subclasses|
These methods specialize standard MATLAB operators and functions for objects in this class.
Array of header fields as string, as it appears in a message. Inserts newline characters between fields but not at the end of all fields.
Array of header fields as character vector, as described by