matlab.net.http.field.ContentTypeField Class
Namespace: matlab.net.http.field
Superclasses: matlab.net.http.HeaderField
, matlab.net.http.field.MediaRangeField
HTTP Content-Type header field
Description
A ContentTypeField
object is an HTTP header field in a request or response
message. The field contains a single media type specification indicating the type of content
in the body of the message. For more information, see RFC 7231 Semantics and Content, section
3.1.1.5. Content-Type on the RFC Editor website.
In a request message, a Content-Type field determines how data specified in the
MessageBody.Data
property is converted. For information on this
conversion, see HTTP Data Type Conversion. If a request message contains a nonempty body, but does not contain a Content-Type field,
then MATLAB® creates a Content-Type field based on the data type.
Creation
Properties
Methods
Examples
Version History
Introduced in R2016b