mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Merge pull request #33081 from kei-ito/request-path
[node] Add ClientRequest.prototype.path
This commit is contained in:
Vendored
+1
@@ -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;
|
||||
|
||||
@@ -112,6 +112,9 @@ import * as net from 'net';
|
||||
|
||||
// event
|
||||
req.on('data', () => { });
|
||||
|
||||
// path
|
||||
const path: string = req.path;
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user