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.
Importimport { rfc1123 } from 'progressive-web-sdk/dist/utils/ssr-proxying
Returns:
String
Parameter | Type |
---|---|
date | Date |
ParsedHost
Property | Type | Description |
---|---|---|
.host | String | The host (10.10.10.10:port), which includes the port (if any) |
.hostname | String | The hostname (10.10.10.10), which excludes the port |
.port | String | The host’s port |
.isIPOrLocalhost | Boolean | Whether the hostname is an IP or localhost |