Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

matlab.net.http.field.HTTPDateField class

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

HTTP header field containing date

Description

The HTTPDateField is 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 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.

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 is provided without a time zone, it is assumed to be local.

Introduced in R2016b

Was this topic helpful?