matlab.net.http.MediaType Class
Namespace: matlab.net.http
Internet media type used in HTTP headers
Description
The MediaType class represents an internet media type, as defined in RFC
7231 Media Type, section 3.1.1.1 on the RFC Editor website. The MediaType class
also represents the contents of a Content-Type field or an Accept field.
Creation
Description
obj = matlab.net.http.MediaType(
creates a type,paramName,paramValue)MediaType object given by type, with
additional options specified by one or more
paramName,paramValue pair arguments. You can
specify several paramName,paramValue pair arguments in any order as
paramName1,paramValue1,...,paramNameN,paramValueN.
obj = matlab.net.http.MediaType( parses
text)text to create a media type. Quotes and escape characters within
the values of parameters are removed. This constructor does not prevent creating a
MediaType object with duplicate parameter names.
Input Arguments
Properties
Methods
Version History
Introduced in R2016b