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

Function handler

test/core.js:965–970  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

963
964 let stop;
965 const handler = async (request) => {
966
967 stop = server.stop({ timeout: 200 });
968 await Hoek.wait(0);
969 return 'ok';
970 };
971
972 const server = Hapi.server();
973 server.route({ method: 'GET', path: '/', handler });

Callers

nothing calls this directly

Calls 4

stopMethod · 0.80
codeMethod · 0.65
etagMethod · 0.65
responseMethod · 0.65

Tested by

no test coverage detected