HTTP Accept header field
AcceptField object is an HTTP header field in a request message. The
field contains one or more media type specifications indicating the type of content acceptable
to the client.
For information on class attributes, see Class Attributes.
obj = matlab.net.http.field.AcceptField(value) creates an Accept
header field with the
Value property set to
Use an Accept field if the server can return different
objects and you want to receive only certain types. If you do not specify an Accept field,
the server might assume that you are willing to receive any type.
Name— Header field name
Header field name, specified as
Value— Media type
matlab.net.http.MediaTypeobjects | vector of strings | cell array of character vectors
Media type, specified as a vector of
matlab.net.http.MediaType objects, a vector of strings, or a cell array of
character vectors. All strings must be acceptable to the
Value represents a media type containing an
optional quality (
'q') parameter. The
property of the field is a comma-separated list of the
converted to strings.
|Add fields to HeaderField array|
|Remove fields from header field array|
|Change existing values in HeaderField array|
|Change values in or add fields to array of HeaderFields|
|Return header fields matching name or class|
|Compare two HeaderField arrays|
|Convert header field value like another header field|
|Parse header field value and return as strings|
|Display supported HeaderField subclasses|
These methods specialize standard MATLAB® operators and functions for objects in this class.
Array of header fields as string, as it appears in a message. Inserts newline characters between fields but not at the end of all fields.
Array of header fields as character vector, as described by