MCPcopy
hub / github.com/browserless/browserless / onHTTPTimeout

Method onHTTPTimeout

src/router.ts:124–127  ·  view source on GitHub ↗
(_req: Request, res: Response)

Source from the content-addressed store, hash-verified

122 }
123
124 protected onHTTPTimeout(_req: Request, res: Response) {
125 this.log.error(`HTTP job has timedout, sending 429 response`);
126 return writeResponse(res, 408, 'Request has timed out');
127 }
128
129 protected onWebsocketTimeout(_req: Request, socket: stream.Duplex) {
130 this.log.error(`Websocket job has timedout, sending 429 response`);

Callers

nothing calls this directly

Calls 2

writeResponseFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected