Main Content

getParameter

Class: matlab.net.http.MediaType
Namespace: matlab.net.http

Value of media type parameter

Syntax

value = getParameter(obj,name)

Description

value = getParameter(obj,name) returns the value of a MediaType parameter name. Parameter name matching is case-insensitive.

Input Arguments

expand all

Media type, specified as a matlab.net.http.MediaType object.

Parameter name, specified as a string.

Output Arguments

expand all

Parameter value, returned as an array of nonempty strings. Parameter name matching is case-insensitive. If the parameter appears more than once, then value contains multiple elements. If the parameter does not exist, then value is empty.

Version History

Introduced in R2016b

See Also