Package: matlab.net.http
Internet media type used in HTTP headers
The MediaType
class represents an internet media type, as defined in RFC 7231 — Media Type,
section 3.1.1.1. The MediaType
class also represents the contents of a
Content-Type field or an Accept field.
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.