(_req: Request, res: Response)
| 101 | } |
| 102 | |
| 103 | protected onHTTPUnauthorized(_req: Request, res: Response) { |
| 104 | this.logger.error( |
| 105 | `HTTP request is not properly authorized, responding with 401`, |
| 106 | ); |
| 107 | this.metrics.addUnauthorized(); |
| 108 | return writeResponse(res, 401, 'Bad or missing authentication.'); |
| 109 | } |
| 110 | |
| 111 | protected onWebsocketUnauthorized(_req: Request, socket: stream.Duplex) { |
| 112 | this.logger.error( |
no test coverage detected