(request, h)
| 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 |