matlab.net.http.field.HTTPDateField class

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

HTTP header field containing date

Description

An HTTPDateField object is an HTTP header field containing a date. The fields implemented by this class contain a single date in standard HTTP date format.

Creation

Description

obj = matlab.net.http.field.HTTPDateField(name) creates an HTTP date header field with the Name property set to name.

obj = matlab.net.http.field.HTTPDateField(name,value) sets the Value property to value.

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 a Date field, use the matlab.net.http.field.DateField subclass.

Attributes:

GetAccess
public
SetAccess
public

Date, specified as a datetime object or a string in a valid HTTP date format as specified in RFC 7231 Semantics and Content, section 7.1.1.1. Date/Time Formats. If a datetime object does not have a time zone, then it is assumed to be local.

Attributes:

GetAccess
public
SetAccess
public
Dependent
true

Methods

expand all

Introduced in R2016b