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

Function preResponse

test/transmit.js:1026–1034  ·  view source on GitHub ↗
(request, h)

Source from the content-addressed store, hash-verified

1024 const res1 = await server.inject('/file');
1025
1026 const preResponse = (request, h) => {
1027
1028 request.response._marshal = function () {
1029
1030 throw new Error('not called');
1031 };
1032
1033 return h.continue;
1034 };
1035
1036 server.ext('onPreResponse', preResponse);
1037

Callers

nothing calls this directly

Calls 1

onceMethod · 0.65

Tested by

no test coverage detected