DateCache Module

Cached HTTP date string to avoid formatting on every request. HTTP dates only change once per second, so caching provides significant benefit.

Functions and values

Function or value Description

getHttpDateBytes ()

Full Usage: getHttpDateBytes ()

Parameters:
    () : unit

Returns: byte[]

Get the current HTTP date as ASCII bytes. Caches the result and only updates once per second.

() : unit
Returns: byte[]

getHttpDateString ()

Full Usage: getHttpDateString ()

Parameters:
    () : unit

Returns: string

Get the current HTTP date as a formatted string. Caches the result and only updates once per second.

() : unit
Returns: string