mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
express: Request.host deprecated, use .hostname
This commit is contained in:
5
express/express.d.ts
vendored
5
express/express.d.ts
vendored
@@ -349,6 +349,11 @@ declare module "express" {
|
||||
/**
|
||||
* Parse the "Host" header field hostname.
|
||||
*/
|
||||
hostname: string;
|
||||
|
||||
/**
|
||||
* @deprecated Use hostname instead.
|
||||
*/
|
||||
host: string;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user