Merge pull request #33081 from kei-ito/request-path

[node] Add ClientRequest.prototype.path
This commit is contained in:
Jesse Trinity
2019-03-01 17:16:00 -08:00
committed by GitHub
9 changed files with 11 additions and 0 deletions
+1
View File
@@ -159,6 +159,7 @@ declare module "http" {
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
readonly path: string;
abort(): void;
onSocket(socket: net.Socket): void;
setTimeout(timeout: number, callback?: () => void): this;
+3
View File
@@ -112,6 +112,9 @@ import * as net from 'net';
// event
req.on('data', () => { });
// path
const path: string = req.path;
}
{
+1
View File
@@ -531,6 +531,7 @@ declare module "http" {
write(str: string, encoding?: string, cb?: Function): boolean;
write(str: string, encoding?: string, fd?: string): boolean;
readonly path: string;
write(chunk: any, encoding?: string): void;
abort(): void;
setTimeout(timeout: number, callback?: Function): void;
+1
View File
@@ -154,6 +154,7 @@ declare module "http" {
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
readonly path: string;
abort(): void;
onSocket(socket: net.Socket): void;
setTimeout(timeout: number, callback?: () => void): this;
+1
View File
@@ -785,6 +785,7 @@ declare module "http" {
write(str: string, encoding?: string, cb?: Function): boolean;
write(str: string, encoding?: string, fd?: string): boolean;
readonly path: string;
write(chunk: any, encoding?: string): void;
abort(): void;
setTimeout(timeout: number, callback?: Function): void;
+1
View File
@@ -857,6 +857,7 @@ declare module "http" {
write(str: string, encoding?: string, cb?: Function): boolean;
write(str: string, encoding?: string, fd?: string): boolean;
readonly path: string;
write(chunk: any, encoding?: string): void;
abort(): void;
setTimeout(timeout: number, callback?: Function): void;
+1
View File
@@ -854,6 +854,7 @@ declare module "http" {
write(str: string, encoding?: string, cb?: Function): boolean;
write(str: string, encoding?: string, fd?: string): boolean;
readonly path: string;
write(chunk: any, encoding?: string): void;
abort(): void;
setTimeout(timeout: number, callback?: Function): void;
+1
View File
@@ -1101,6 +1101,7 @@ declare module "http" {
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
readonly path: string;
abort(): void;
onSocket(socket: net.Socket): void;
setTimeout(timeout: number, callback?: () => void): this;
+1
View File
@@ -1186,6 +1186,7 @@ declare module "http" {
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
readonly path: string;
abort(): void;
onSocket(socket: net.Socket): void;
setTimeout(timeout: number, callback?: () => void): this;