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

Method add

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

* Same as calling [server.state()](https://github.com/hapijs/hapi/blob/master/API.md#server.state()).

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

Source from the content-addressed store, hash-verified

55 * Same as calling [server.state()](https://github.com/hapijs/hapi/blob/master/API.md#server.state()).
56 */
57 add(name: string, options?: ServerStateCookieOptions | undefined): void;
58
59 /**
60 * Formats an HTTP 'Set-Cookie' header based on the server.options.state where:

Callers 12

addMethod · 0.65
combineMethod · 0.65
registerServerMethod · 0.65
_initializeListenerMethod · 0.65
rebuildMethod · 0.65
_extMethod · 0.65
methodMethod · 0.65
_addRouteMethod · 0.65
stateMethod · 0.65
methods.jsFile · 0.65
server.jsFile · 0.65
index.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected