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

Function postHandler

test/response.js:54–59  ·  view source on GitHub ↗
(request, h)

Source from the content-addressed store, hash-verified

52 server.state('always', { autoValue: 'present' });
53
54 const postHandler = (request, h) => {
55
56 h.state('test', '123');
57 h.unstate('empty', { path: '/path' });
58 return h.continue;
59 };
60
61 server.ext('onPostHandler', postHandler);
62

Callers

nothing calls this directly

Calls 2

stateMethod · 0.65
unstateMethod · 0.65

Tested by

no test coverage detected