headers are now similar to jquery + readme updated

This commit is contained in:
Vladimir Enchev
2014-04-24 16:50:46 +03:00
parent 62d67c0fac
commit 3d8602c58c
4 changed files with 32 additions and 42 deletions

View File

@ -9,18 +9,13 @@ export declare function request(options: HttpRequestOptions): promises.Promise<H
export interface HttpRequestOptions {
url: string;
method: string;
headers?: HttpHeader[];
headers?: any;
content?: any;
}
export interface HttpHeader {
name: string;
value: string;
}
export interface HttpResponse {
statusCode: number;
headers: HttpHeader[];
headers: any;
content?: HttpContent;
}