Main Content
setParameter
Class: matlab.net.http.MediaType
Namespace: matlab.net.http
Set value of media type parameter
Syntax
newType =
setParameter(mediaType,name,value)
Description
returns
a copy of the specified newType
=
setParameter(mediaType
,name
,value
)mediaType
parameter with
the parameter name
set to value
,
creating one if it does not exist. Parameter name matching is case-insensitive.
If a parameter exists with the same name, but different case, the
case is changed to the specified name
. If more
than one match is found, only the last value is set.
A new parameter is added to the end of the list of parameters.
If a q
parameter exists in the list, the new parameter
is treated as part of the accept-params
rather
than the media-type.
Input Arguments
Output Arguments
Version History
Introduced in R2016b