menu
Menu
Mobify DevCenter
search_icon_focus

Ssr Proxying

progressive-web-sdk/dist/utils/ssr-proxying

rfc1123(date)

Return the given date as an RFC1123-format string, suitable for use in a Set-Cookie or Date header. The result is always in UTC.

Import
import { rfc1123 } from 'progressive-web-sdk/dist/utils/ssr-proxying

Returns:

String

ParameterType
dateDate

ParsedHost

PropertyTypeDescription
.hostStringThe host (10.10.10.10:port), which includes the port (if any)
.hostnameStringThe hostname (10.10.10.10), which excludes the port
.portStringThe host’s port
.isIPOrLocalhostBooleanWhether the hostname is an IP or localhost