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