mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 17:07:07 +08:00
add request.ip
This commit is contained in:
5
types/koa/index.d.ts
vendored
5
types/koa/index.d.ts
vendored
@@ -136,6 +136,11 @@ declare interface ContextDelegatedRequest {
|
||||
*/
|
||||
secure: boolean;
|
||||
|
||||
/**
|
||||
* Request remote address. Supports X-Forwarded-For when app.proxy is true.
|
||||
*/
|
||||
ip: string;
|
||||
|
||||
/**
|
||||
* When `app.proxy` is `true`, parse
|
||||
* the "X-Forwarded-For" ip address list.
|
||||
|
||||
Reference in New Issue
Block a user