Class: matlab.net.http.HeaderField
Package: matlab.net.http
Parse header field value and return as strings
parses
the value
=
parse(obj
)Value
property of the header field and returns
strings. Use this method to process header fields for which there
is no class in the matlab.net.http.field
package.
Use the matlab.net.http.HeaderField.displaySubclasses
method
to display classes in the package. For classes in the package, use
the corresponding convert
method to parse the value.
The parsing rules are based on sections 3.2.4-3.2.6 of RFC 7230 Message Syntax and Routing and are augmented to interpret multiple values.
specifies the names
to use for unnamed value
=
parse(obj
,fields
)struct
fields.
If the Nth field of a struct
has no name,
the corresponding Nth name in fields
exists
and is nonempty. It is used instead of Arg_N
. Using
this syntax forces the returned value
to
be a struct
(or vector of struct
objects)
with at least as many fields as the length of fields
. Typically this pattern occurs
in header fields that begin with a token followed by attribute pairs.
specifies
one or more delimiters. The
default delimiters are commas and semicolons. You can use any of the
input arguments in the previous syntaxes.value
=
parse(___,Name,Value
)