Documentation

matlab.net.http.field.HTTPDateField class

Package:matlab.net.http.field
Superclasses:matlab.net.http.HeaderField

HTTP header field containing date

Description

TheHTTPDateFieldis an HTTP header field containing a date. The fields implemented by this class contain a single date in standard HTTP date format.

Construction

obj = matlab.net.http.field.HTTPDateField(name)creates an HTTP date header field with theNameproperty set toname.

obj = matlab.net.http.field.HTTPDateField(name,value)sets theValueproperty tovalue.

Properties

expand all

Date field name, specified as a string of one of these values:'Date','Expires','Retry-After','Accept-Datetime','Last-Modified', or'If-Modified-Since'.

To create aDatefield, use thematlab.net.http.field.DateFieldsubclass.

Date, specified as adatetimeobject or a string in a valid HTTP date format as specified inRFC 7231 Semantics and Content, section 7.1.1.1. Date/Time Formats. If adatetimeobject is provided without a time zone, it is assumed to be local.

Introduced in R2016b

Was this topic helpful?