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

Function onPreResponse

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

Source from the content-addressed store, hash-verified

857 it('sets charset with default type in onPreResponse', async () => {
858
859 const onPreResponse = (request, h) => {
860
861 request.response.charset('abc');
862 return h.continue;
863 };
864
865 const server = Hapi.server();
866 server.ext('onPreResponse', onPreResponse);

Callers

nothing calls this directly

Calls 1

charsetMethod · 0.65

Tested by

no test coverage detected