(req: http.IncomingMessage)
| 1452 | } |
| 1453 | |
| 1454 | getRequestIp(req: http.IncomingMessage): string { |
| 1455 | // TODO: respect the `x-forwarded-for` headers |
| 1456 | return req.connection.remoteAddress || '127.0.0.1'; |
| 1457 | } |
| 1458 | |
| 1459 | /** |
| 1460 | * Sets the response `headers` including the platform headers to `res`. |