getParameter
Class: matlab.net.http.field.GenericField
Namespace: matlab.net.http.field
Return value of parameter in field
Description
Input Arguments
field
— Header field
matlab.net.http.field.GenericField
object
Header field, specified as a matlab.net.http.field.GenericField
object.
name
— Parameter name
string | character vector | ""
| ''
Parameter name, specified as a string or a character vector.
The name must be a valid token, containing only characters defined in RFC
7230 Field Value Components, section 3.2.6 on the RFC Editor website. To set
an unnamed parameter, use ""
or
''
.
Name matching is not case-sensitive, but value
is
case-sensitive. If name
matches an existing parameter,
but with a different case, then the parameter name is changed to the case of
the specified name
.
If there are multiple matching parameters, then all are changed to
value
.
Output Arguments
value
— Parameter value
string | string vector | empty string
Parameter value returned as a string. If there are multiple matches, then
value
and actname
are string
vectors. If there are no matches, then value
and
actname
are empty string arrays. The method
removes quotes surrounding the parameter value from
value
.
actname
— Actual parameter name
string | string vector | empty string
Actual parameter name returned as a string, string vector, or empty string.
Version History
Introduced in R2018a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)