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

Function handler

test/request.js:130–133  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

128 const server = Hapi.server();
129
130 const handler = (request) => {
131
132 return [request.info.host, request.info.hostname].join('|');
133 };
134
135 server.route({ method: 'GET', path: '/', handler });
136

Callers

nothing calls this directly

Calls 4

matchMethod · 0.80
destroyMethod · 0.80
logMethod · 0.65
onceMethod · 0.65

Tested by

no test coverage detected