MCPcopy Index your code
hub / github.com/hapijs/hapi / format

Method format

lib/types/server/state.d.ts:69–69  ·  view source on GitHub ↗

* Formats an HTTP 'Set-Cookie' header based on the server.options.state where: * @param cookies - a single object or an array of object where each contains: * * name - the cookie name. * * value - the cookie value. * * options - cookie configuration to override the server setting

(cookies: ServerStateFormat | ServerStateFormat[])

Source from the content-addressed store, hash-verified

67 * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-async-serverstatesformatcookies)
68 */
69 format(cookies: ServerStateFormat | ServerStateFormat[]): Promise<string>;
70
71 /**
72 * Parses an HTTP 'Cookies' header based on the server.options.state where:

Callers 1

headers.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected