MCPcopy
hub / github.com/hapijs/hapi / state

Method state

lib/types/response.d.ts:267–267  ·  view source on GitHub ↗

* Sets an HTTP cookie where: * @param name - the cookie name. * @param value - the cookie value. If no options.encoding is defined, must be a string. See server.state() for supported encoding values. * @param options - (optional) configuration. If the state was previously registered w

(name: string, value: object | string, options?: ServerStateCookieOptions | undefined)

Source from the content-addressed store, hash-verified

265 * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-responsestatename-value-options)
266 */
267 state(name: string, value: object | string, options?: ServerStateCookieOptions | undefined): ResponseObject;
268
269 /**
270 * Sets a string suffix when the response is process via JSON.stringify() where:

Callers 6

state.jsFile · 0.65
security.jsFile · 0.65
transmit.jsFile · 0.65
handlerFunction · 0.65
response.jsFile · 0.65
postHandlerFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected