http and file-system naming changed to use "-"

This commit is contained in:
Vladimir Enchev
2014-05-15 09:36:08 +03:00
parent 056d43089f
commit a1db810eec
17 changed files with 34 additions and 34 deletions

28
http/http-request.d.ts vendored Normal file
View File

@@ -0,0 +1,28 @@
/**
* The http client interface.
*/
import image_module = require("image/image");
import promises = require("promises/promises");
export declare function request(options: HttpRequestOptions): promises.Promise<HttpResponse>;
export interface HttpRequestOptions {
url: string;
method: string;
headers?: any;
content?: any;
timeout?: number;
}
export interface HttpResponse {
statusCode: number;
headers: any;
content?: HttpContent;
}
export interface HttpContent {
raw: any;
toString: () => string;
toJSON: () => any;
toImage: () => image_module.Image;
}