urllib 3.0.0-alpha.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/History.md +858 -0
- package/README.md +41 -106
- package/package.json +15 -12
- package/src/HttpAgent.ts +72 -0
- package/src/HttpClient.ts +324 -84
- package/src/Request.ts +56 -54
- package/src/Response.ts +38 -17
- package/src/cjs/HttpAgent.d.ts +16 -0
- package/src/cjs/HttpAgent.js +62 -0
- package/src/cjs/HttpAgent.js.map +1 -0
- package/src/cjs/HttpClient.d.ts +31 -22
- package/src/cjs/HttpClient.js +376 -180
- package/src/cjs/HttpClient.js.map +1 -1
- package/src/cjs/Request.d.ts +51 -54
- package/src/cjs/Response.d.ts +33 -17
- package/src/cjs/index.d.ts +3 -22
- package/src/cjs/index.js +3 -1
- package/src/cjs/index.js.map +1 -1
- package/src/cjs/utils.d.ts +3 -0
- package/src/cjs/utils.js +56 -0
- package/src/cjs/utils.js.map +1 -0
- package/src/esm/HttpAgent.d.ts +16 -0
- package/src/esm/HttpAgent.js +58 -0
- package/src/esm/HttpAgent.js.map +1 -0
- package/src/esm/HttpClient.d.ts +31 -22
- package/src/esm/HttpClient.js +375 -179
- package/src/esm/HttpClient.js.map +1 -1
- package/src/esm/Request.d.ts +51 -54
- package/src/esm/Response.d.ts +33 -17
- package/src/esm/index.d.ts +3 -22
- package/src/esm/index.js +3 -2
- package/src/esm/index.js.map +1 -1
- package/src/esm/utils.d.ts +3 -0
- package/src/esm/utils.js +51 -0
- package/src/esm/utils.js.map +1 -0
- package/src/index.ts +3 -3
- package/src/utils.ts +53 -0
package/src/Request.ts
CHANGED
@@ -1,20 +1,31 @@
|
|
1
1
|
import { Readable, Writable } from 'stream';
|
2
|
-
import {
|
2
|
+
import { IncomingHttpHeaders } from 'http';
|
3
|
+
import type {
|
4
|
+
HttpMethod as UndiciHttpMethod,
|
5
|
+
} from 'undici/types/dispatcher';
|
6
|
+
import type {
|
7
|
+
HttpClientResponse,
|
8
|
+
} from './Response';
|
3
9
|
|
4
|
-
export type HttpMethod =
|
10
|
+
export type HttpMethod = UndiciHttpMethod;
|
5
11
|
|
6
12
|
export type RequestURL = string | URL;
|
7
13
|
|
14
|
+
export type FixJSONCtlCharsHandler = (data: string) => string;
|
15
|
+
export type FixJSONCtlChars = boolean | FixJSONCtlCharsHandler;
|
16
|
+
|
8
17
|
export type RequestOptions = {
|
9
18
|
/** Request method, defaults to GET. Could be GET, POST, DELETE or PUT. Alias 'type'. */
|
10
19
|
method?: HttpMethod | Lowercase<HttpMethod>;
|
11
20
|
/** Data to be sent. Will be stringify automatically. */
|
12
21
|
data?: any;
|
13
|
-
/** Force convert data to query string. */
|
14
|
-
dataAsQueryString?: boolean;
|
15
22
|
/** Manually set the content of payload. If set, data will be ignored. */
|
16
23
|
content?: string | Buffer | Readable;
|
17
|
-
/**
|
24
|
+
/**
|
25
|
+
* @deprecated
|
26
|
+
* Stream to be pipe to the remote. If set, data and content will be ignored.
|
27
|
+
* Alias to `content = Readable`
|
28
|
+
*/
|
18
29
|
stream?: Readable;
|
19
30
|
/**
|
20
31
|
* A writable stream to be piped by the response stream.
|
@@ -22,8 +33,6 @@ export type RequestOptions = {
|
|
22
33
|
* will be called with data set null after finished writing.
|
23
34
|
*/
|
24
35
|
writeStream?: Writable;
|
25
|
-
/** consume the writeStream, invoke the callback after writeStream close. */
|
26
|
-
consumeWriteStream?: boolean;
|
27
36
|
/**
|
28
37
|
* The files will send with multipart/form-data format, base on formstream.
|
29
38
|
* If method not set, will use POST method by default.
|
@@ -36,19 +45,25 @@ export type RequestOptions = {
|
|
36
45
|
* If it's text, the callbacked data would be a String.
|
37
46
|
* If it's json, the data of callback would be a parsed JSON Object
|
38
47
|
* and will auto set Accept: 'application/json' header.
|
39
|
-
* Default is buffer.
|
48
|
+
* Default is 'buffer'.
|
40
49
|
*/
|
41
50
|
dataType?: 'text' | 'json' | 'buffer' | 'stream';
|
42
51
|
/**
|
52
|
+
* @deprecated
|
43
53
|
* Let you get the res object when request connected, default false.
|
44
54
|
* If set to true, `data` will be response readable stream.
|
45
|
-
*
|
55
|
+
* Alias to `dataType = 'stream'`
|
46
56
|
*/
|
47
57
|
streaming?: boolean;
|
58
|
+
/**
|
59
|
+
* @deprecated
|
60
|
+
* Alias to `dataType = 'stream'`
|
61
|
+
*/
|
62
|
+
customResponse?: boolean;
|
48
63
|
/** Fix the control characters (U+0000 through U+001F) before JSON parse response. Default is false. */
|
49
|
-
fixJSONCtlChars?:
|
64
|
+
fixJSONCtlChars?: FixJSONCtlChars;
|
50
65
|
/** Request headers. */
|
51
|
-
headers?:
|
66
|
+
headers?: IncomingHttpHeaders;
|
52
67
|
/**
|
53
68
|
* Request timeout in milliseconds for connecting phase and response receiving phase.
|
54
69
|
* Defaults to exports.
|
@@ -56,41 +71,12 @@ export type RequestOptions = {
|
|
56
71
|
* timeout: [3000, 5000], which will set connecting timeout to 3s and response 5s.
|
57
72
|
*/
|
58
73
|
timeout?: number | number[];
|
59
|
-
/** username:password used in HTTP Basic Authorization. */
|
60
|
-
auth?: string;
|
61
|
-
/** username:password used in HTTP Digest Authorization. */
|
62
|
-
digestAuth?: string;
|
63
|
-
/**
|
64
|
-
* An array of strings or Buffers of trusted certificates.
|
65
|
-
* If this is omitted several well known "root" CAs will be used, like VeriSign.
|
66
|
-
* These are used to authorize connections.
|
67
|
-
* Notes: This is necessary only if the server uses the self - signed certificate
|
68
|
-
*/
|
69
|
-
ca?: string | Buffer | string[] | Buffer[];
|
70
74
|
/**
|
71
|
-
*
|
72
|
-
*
|
73
|
-
|
74
|
-
|
75
|
-
/**
|
76
|
-
pfx?: string | Buffer;
|
77
|
-
/**
|
78
|
-
* A string or Buffer containing the private key of the client in PEM format.
|
79
|
-
* Notes: This is necessary only if using the client certificate authentication
|
80
|
-
*/
|
81
|
-
key?: string | Buffer;
|
82
|
-
/**
|
83
|
-
* A string or Buffer containing the certificate key of the client in PEM format.
|
84
|
-
* Notes: This is necessary only if using the client certificate authentication
|
85
|
-
*/
|
86
|
-
cert?: string | Buffer;
|
87
|
-
/** A string of passphrase for the private key or pfx. */
|
88
|
-
passphrase?: string;
|
89
|
-
/** A string describing the ciphers to use or exclude. */
|
90
|
-
ciphers?: string;
|
91
|
-
/** The SSL method to use, e.g.SSLv3_method to force SSL version 3. */
|
92
|
-
secureProtocol?: string;
|
93
|
-
/** follow HTTP 3xx responses as redirects. defaults to false. */
|
75
|
+
* username:password used in HTTP Basic Authorization.
|
76
|
+
* Alias to `headers.authorization = xxx`
|
77
|
+
**/
|
78
|
+
auth?: string;
|
79
|
+
/** follow HTTP 3xx responses as redirects. defaults to true. */
|
94
80
|
followRedirect?: boolean;
|
95
81
|
/** The maximum number of redirects to follow, defaults to 10. */
|
96
82
|
maxRedirects?: number;
|
@@ -98,19 +84,35 @@ export type RequestOptions = {
|
|
98
84
|
formatRedirectUrl?: (a: any, b: any) => void;
|
99
85
|
/** Before request hook, you can change every thing here. */
|
100
86
|
beforeRequest?: (...args: any[]) => void;
|
101
|
-
/** Accept gzip response content and auto decode it, default is false. */
|
87
|
+
/** Accept `gzip, br` response content and auto decode it, default is false. */
|
88
|
+
compressed?: boolean;
|
89
|
+
/**
|
90
|
+
* @deprecated
|
91
|
+
* Alias to compressed
|
92
|
+
* */
|
102
93
|
gzip?: boolean;
|
103
|
-
/**
|
94
|
+
/**
|
95
|
+
* @deprecated
|
96
|
+
* Enable timing or not, default is false.
|
97
|
+
* */
|
104
98
|
timing?: boolean;
|
105
99
|
/**
|
106
|
-
*
|
107
|
-
*
|
100
|
+
* Auto retry times on 5xx response, default is 0. Don't work on streaming request
|
101
|
+
* It's not supported by using retry and writeStream, because the retry request can't stop the stream which is consuming.
|
102
|
+
**/
|
103
|
+
retry?: number;
|
104
|
+
/** Wait a delay(ms) between retries */
|
105
|
+
retryDelay?: number;
|
106
|
+
/**
|
107
|
+
* Determine whether retry, a response object as the first argument.
|
108
|
+
* It will retry when status >= 500 by default. Request error is not included.
|
108
109
|
*/
|
109
|
-
|
110
|
+
isRetry?: (response: HttpClientResponse) => boolean;
|
111
|
+
/** Default: `null` */
|
112
|
+
opaque?: unknown;
|
110
113
|
/**
|
111
|
-
*
|
112
|
-
*
|
113
|
-
* It rely on lookup and have the same version requirement.
|
114
|
+
* @deprecated
|
115
|
+
* Maybe you should use opaque instead
|
114
116
|
*/
|
115
|
-
|
117
|
+
ctx?: unknown;
|
116
118
|
};
|
package/src/Response.ts
CHANGED
@@ -1,20 +1,41 @@
|
|
1
|
-
import {
|
1
|
+
import { Readable } from 'stream';
|
2
|
+
import { IncomingHttpHeaders } from 'http';
|
2
3
|
|
3
|
-
export
|
4
|
-
data: T;
|
4
|
+
export type HttpClientResponseMeta = {
|
5
5
|
status: number;
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
6
|
+
statusCode: number;
|
7
|
+
headers: IncomingHttpHeaders;
|
8
|
+
size: number;
|
9
|
+
aborted: boolean;
|
10
|
+
rt: number;
|
11
|
+
keepAliveSocket: boolean;
|
12
|
+
requestUrls: string[];
|
13
|
+
/**
|
14
|
+
* https://eggjs.org/en/core/httpclient.html#timing-boolean
|
15
|
+
*/
|
16
|
+
timing: {
|
17
|
+
contentDownload: number;
|
18
|
+
waiting: number;
|
19
19
|
};
|
20
|
-
|
20
|
+
// remoteAddress: remoteAddress,
|
21
|
+
// remotePort: remotePort,
|
22
|
+
// socketHandledRequests: socketHandledRequests,
|
23
|
+
// socketHandledResponses: socketHandledResponses,
|
24
|
+
};
|
25
|
+
|
26
|
+
export type ReadableWithMeta = Readable & {
|
27
|
+
status: number;
|
28
|
+
statusCode: number;
|
29
|
+
headers: IncomingHttpHeaders;
|
30
|
+
};
|
31
|
+
|
32
|
+
export type HttpClientResponse = {
|
33
|
+
opaque: unknown;
|
34
|
+
data: any
|
35
|
+
status: number;
|
36
|
+
headers: IncomingHttpHeaders;
|
37
|
+
url: string;
|
38
|
+
redirected: boolean;
|
39
|
+
requestUrls: string[];
|
40
|
+
res: ReadableWithMeta | HttpClientResponseMeta;
|
41
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { LookupFunction } from 'net';
|
3
|
+
import { Agent } from 'undici';
|
4
|
+
import { DispatchHandlers } from 'undici/types/dispatcher';
|
5
|
+
import { BuildOptions } from 'undici/types/connector';
|
6
|
+
export declare type CheckAddressFunction = (ip: string, family: number | string) => boolean;
|
7
|
+
export declare type HttpAgentOptions = {
|
8
|
+
lookup?: LookupFunction;
|
9
|
+
checkAddress?: CheckAddressFunction;
|
10
|
+
connect?: BuildOptions;
|
11
|
+
};
|
12
|
+
export declare class HttpAgent extends Agent {
|
13
|
+
#private;
|
14
|
+
constructor(options: HttpAgentOptions);
|
15
|
+
dispatch(options: Agent.DispatchOptions, handler: DispatchHandlers): boolean;
|
16
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"use strict";
|
2
|
+
var _HttpAgent_checkAddress;
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.HttpAgent = void 0;
|
5
|
+
const tslib_1 = require("tslib");
|
6
|
+
const dns_1 = tslib_1.__importDefault(require("dns"));
|
7
|
+
const net_1 = require("net");
|
8
|
+
const undici_1 = require("undici");
|
9
|
+
class IllegalAddressError extends Error {
|
10
|
+
constructor(hostname, ip, family) {
|
11
|
+
const message = 'illegal address';
|
12
|
+
super(message);
|
13
|
+
this.name = this.constructor.name;
|
14
|
+
this.hostname = hostname;
|
15
|
+
this.ip = ip;
|
16
|
+
this.family = family;
|
17
|
+
Error.captureStackTrace(this, this.constructor);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
class HttpAgent extends undici_1.Agent {
|
21
|
+
constructor(options) {
|
22
|
+
var _a;
|
23
|
+
/* eslint node/prefer-promises/dns: off*/
|
24
|
+
const _lookup = (_a = options.lookup) !== null && _a !== void 0 ? _a : dns_1.default.lookup;
|
25
|
+
const lookup = (hostname, dnsOptions, callback) => {
|
26
|
+
_lookup(hostname, dnsOptions, (err, address, family) => {
|
27
|
+
if (err)
|
28
|
+
return callback(err, address, family);
|
29
|
+
if (options.checkAddress && !options.checkAddress(address, family)) {
|
30
|
+
err = new IllegalAddressError(hostname, address, family);
|
31
|
+
}
|
32
|
+
callback(err, address, family);
|
33
|
+
});
|
34
|
+
};
|
35
|
+
super({
|
36
|
+
connect: { ...options.connect, lookup },
|
37
|
+
});
|
38
|
+
_HttpAgent_checkAddress.set(this, void 0);
|
39
|
+
tslib_1.__classPrivateFieldSet(this, _HttpAgent_checkAddress, options.checkAddress, "f");
|
40
|
+
}
|
41
|
+
dispatch(options, handler) {
|
42
|
+
if (tslib_1.__classPrivateFieldGet(this, _HttpAgent_checkAddress, "f") && options.origin) {
|
43
|
+
const originUrl = typeof options.origin === 'string' ? new URL(options.origin) : options.origin;
|
44
|
+
let hostname = originUrl.hostname;
|
45
|
+
// [2001:db8:2de::e13] => 2001:db8:2de::e13
|
46
|
+
if (hostname.startsWith('[') && hostname.endsWith(']')) {
|
47
|
+
hostname = hostname.substring(1, hostname.length - 1);
|
48
|
+
}
|
49
|
+
const family = (0, net_1.isIP)(hostname);
|
50
|
+
if (family === 4 || family === 6) {
|
51
|
+
// if request hostname is ip, custom lookup won't excute
|
52
|
+
if (!tslib_1.__classPrivateFieldGet(this, _HttpAgent_checkAddress, "f").call(this, hostname, family)) {
|
53
|
+
throw new IllegalAddressError(hostname, hostname, family);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
return super.dispatch(options, handler);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.HttpAgent = HttpAgent;
|
61
|
+
_HttpAgent_checkAddress = new WeakMap();
|
62
|
+
//# sourceMappingURL=HttpAgent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HttpAgent.js","sourceRoot":"","sources":["../HttpAgent.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<reference types="node" />
|
2
4
|
import { EventEmitter } from 'events';
|
5
|
+
import { LookupFunction } from 'net';
|
6
|
+
import { CheckAddressFunction } from './HttpAgent';
|
3
7
|
import { RequestURL, RequestOptions } from './Request';
|
8
|
+
import { HttpClientResponse } from './Response';
|
4
9
|
export declare type ClientOptions = {
|
5
10
|
defaultArgs?: RequestOptions;
|
11
|
+
/**
|
12
|
+
* Custom DNS lookup function, default is `dns.lookup`.
|
13
|
+
*/
|
14
|
+
lookup?: LookupFunction;
|
15
|
+
/**
|
16
|
+
* check request address to protect from SSRF and similar attacks.
|
17
|
+
* It receive two arguments(ip and family) and should return true or false to identified the address is legal or not.
|
18
|
+
* It rely on lookup and have the same version requirement.
|
19
|
+
*/
|
20
|
+
checkAddress?: CheckAddressFunction;
|
21
|
+
connect?: {
|
22
|
+
key?: string | Buffer;
|
23
|
+
/**
|
24
|
+
* A string or Buffer containing the certificate key of the client in PEM format.
|
25
|
+
* Notes: This is necessary only if using the client certificate authentication
|
26
|
+
*/
|
27
|
+
cert?: string | Buffer;
|
28
|
+
/**
|
29
|
+
* If true, the server certificate is verified against the list of supplied CAs.
|
30
|
+
* An 'error' event is emitted if verification fails.Default: true.
|
31
|
+
*/
|
32
|
+
rejectUnauthorized?: boolean;
|
33
|
+
};
|
6
34
|
};
|
35
|
+
export declare const HEADER_USER_AGENT: string;
|
7
36
|
export declare class HttpClient extends EventEmitter {
|
8
|
-
|
37
|
+
#private;
|
9
38
|
constructor(clientOptions?: ClientOptions);
|
10
|
-
request(url: RequestURL, options?: RequestOptions): Promise<
|
11
|
-
status: number;
|
12
|
-
data: any;
|
13
|
-
headers: Record<string, string>;
|
14
|
-
url: string;
|
15
|
-
redirected: boolean;
|
16
|
-
res: {
|
17
|
-
status: number;
|
18
|
-
statusCode: number;
|
19
|
-
statusMessage: string;
|
20
|
-
headers: Record<string, string>;
|
21
|
-
size: number;
|
22
|
-
aborted: boolean;
|
23
|
-
rt: number;
|
24
|
-
keepAliveSocket: boolean;
|
25
|
-
requestUrls: string[];
|
26
|
-
timing: {
|
27
|
-
contentDownload: number;
|
28
|
-
};
|
29
|
-
};
|
30
|
-
}>;
|
39
|
+
request(url: RequestURL, options?: RequestOptions): Promise<HttpClientResponse>;
|
31
40
|
}
|