convert
Class: matlab.net.http.HeaderField
Package: matlab.net.http
Convert header field value to MATLAB type
Syntax
Description
converts the value
=
convert(fields
)Value
property
of each element of fields
to a MATLAB® type.
For each header field in fields
, MATLAB checks
the matlab.net.http.field
package for a class that
supports a name with the same value as the fields.Name
property.
If the package contains a class for this field, then convert
invokes
the convert
method of that class. To see the classes
in the field
package, call the matlab.net.http.HeaderField.displaySubclasses
method.
If the conversion fails or if no class supports one of the fields.Name
properties,
then convert
throws an exception.
This method does not work on heterogeneous arrays. All members
of fields
must be the same class.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b