matlab.net.http.field.AcceptField Class
Namespace: matlab.net.http.field
Superclasses: matlab.net.http.HeaderField
, matlab.net.http.field.MediaRangeField
HTTP Accept header field
Description
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. For a description of this field, see RFC 7231 Semantics and Content, section
5.3.2 Accept on the RFC Editor website.
Creation
Description
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.
Properties
Methods
Examples
Version History
Introduced in R2016b