'compressed' in 'needle'

This commit is contained in:
Daniel Rosenwasser
2015-08-13 12:25:57 -07:00
parent e4484309b0
commit f2f7277262
2 changed files with 16 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ function ResponsePipeline() {
var options = {
compressed: true,
follow: true,
follow: 5,
rejectUnauthorized: true
};

19
needle/needle.d.ts vendored
View File

@@ -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 {