Package: matlab.net.http.field
Superclasses: matlab.net.http.HeaderField
, matlab.net.http.field.MediaRangeField
HTTP Accept header field
An 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.
obj = matlab.net.http.field.AcceptField(value)
creates an Accept
header field with the Value
property set to
value
.
Use an Accept field if the server can return different MediaType
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.