Web.HTTPApp.TWebRequest.Expires

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Expires: TDateTime index 19 read GetDateVariable;

C++

__property System::TDateTime Expires = {read=GetDateVariable, index=19};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebRequest

Description

Reports the value of the Expires header of the HTTP request message.

Use Expires to determine whether the request is "stale." Expires is the date and time at which the request becomes invalid. The value of Expires is translated into local time as specified by the system clock from the time units set by the Web client.

If the request has a CacheControl value with a max-age directive, the max-age directive overrides the value of Expires.

Expires is represented using the TDateTime type. The integral part of a TDateTime value is the number of days that have passed since Dec. 30, 1899. The fractional part of a TDateTime value is the fraction of a 24-hour day that has elapsed.

See Also