Protocol::HTTPSourceProtocolHTTPHeaderDate

class Date

The date header represents the date and time at which the message was originated.

This header is typically included in HTTP responses and follows the format defined in RFC 9110.

Definitions

def << value

Replaces the current value of the date header with the specified value.

Signature

parameter value String

the new value for the date header.

Implementation

def << value
	replace(value)
end

def to_time

Converts the date header value to a Time object.

Signature

returns Time

the parsed time object corresponding to the date header value.

Implementation

def to_time
	::Time.parse(self)
end