()
| 66 | } |
| 67 | |
| 68 | function createRouteEventHandler () { |
| 69 | return function onRouteEvent (path, req, res) { |
| 70 | const fourOhFourContext = this[kFourOhFourLevelInstance][kFourOhFourContext] |
| 71 | const id = getGenReqId(fourOhFourContext.server, req) |
| 72 | const childLogger = createChildLogger(fourOhFourContext, logger, req, id) |
| 73 | const request = new Request(id, null, req, null, childLogger, fourOhFourContext) |
| 74 | const reply = new Reply(res, request, childLogger) |
| 75 | |
| 76 | _routeEventHandler(request, reply) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | function setContext (instance, context) { |
| 81 | const _404Context = Object.assign({}, instance[kFourOhFourContext]) |
no test coverage detected