mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
'compressed' in 'needle'
This commit is contained in:
@@ -22,7 +22,7 @@ function ResponsePipeline() {
|
||||
|
||||
var options = {
|
||||
compressed: true,
|
||||
follow: true,
|
||||
follow: 5,
|
||||
rejectUnauthorized: true
|
||||
};
|
||||
|
||||
|
||||
19
needle/needle.d.ts
vendored
19
needle/needle.d.ts
vendored
@@ -15,13 +15,21 @@ declare module Needle {
|
||||
|
||||
interface RequestOptions {
|
||||
timeout?: number;
|
||||
follow?: any; // number | string
|
||||
follow?: number;
|
||||
follow_max?: number;
|
||||
multipart?: boolean;
|
||||
proxy?: string;
|
||||
agent?: string;
|
||||
headers?: any;
|
||||
headers?: HttpHeaderOptions;
|
||||
auth?: string; // auto | digest | basic (default)
|
||||
json?: boolean;
|
||||
|
||||
// These properties are overwritten by those in the 'headers' field
|
||||
compressed?: boolean;
|
||||
cookies?: { [name: string]: any; };
|
||||
// Overwritten if present in the URI
|
||||
username?: string;
|
||||
password?: string;
|
||||
}
|
||||
|
||||
interface ResponseOptions {
|
||||
@@ -31,12 +39,15 @@ declare module Needle {
|
||||
}
|
||||
|
||||
interface HttpHeaderOptions {
|
||||
cookies?: { [name: string]: any; };
|
||||
compressed?: boolean;
|
||||
username?: string;
|
||||
password?: string;
|
||||
accept?: string;
|
||||
connection?: string;
|
||||
user_agent?: string;
|
||||
|
||||
// Overwritten if present in the URI
|
||||
username?: string;
|
||||
password?: string;
|
||||
}
|
||||
|
||||
interface TLSOptions {
|
||||
|
||||
Reference in New Issue
Block a user