diff --git a/BCL.csproj b/BCL.csproj
index 322f34cca..836dfc5b4 100644
--- a/BCL.csproj
+++ b/BCL.csproj
@@ -159,9 +159,6 @@
-
- http.d.ts
-
@@ -190,6 +187,7 @@
http-request.d.ts
+
diff --git a/http/http.ts b/http/http-common.ts
similarity index 86%
rename from http/http.ts
rename to http/http-common.ts
index c5dbfe793..b30a83701 100644
--- a/http/http.ts
+++ b/http/http-common.ts
@@ -4,9 +4,6 @@ import http = require("http/http-request");
// merge request
export var request = http.request;
-export interface HttpResponse extends http.HttpResponse { }
-export interface HttpRequestOptions extends http.HttpRequestOptions { }
-export interface HttpContent extends http.HttpContent { }
/**
* Gets string from url.
diff --git a/http/http.d.ts b/http/http.d.ts
index 5611a20fd..5a453cc4f 100644
--- a/http/http.d.ts
+++ b/http/http.d.ts
@@ -9,4 +9,27 @@ export declare function getJSON(url: string): promises.Promise
export declare function getJSON(options: request.HttpRequestOptions): promises.Promise
export declare function getImage(url: string): promises.Promise
-export declare function getImage(options: request.HttpRequestOptions): promises.Promise
\ No newline at end of file
+export declare function getImage(options: request.HttpRequestOptions): promises.Promise
+
+export declare function request(options: HttpRequestOptions): promises.Promise;
+
+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.ImageSource;
+}
\ No newline at end of file
diff --git a/http/index.ts b/http/index.ts
index 3c912a54c..5b9df928d 100644
--- a/http/index.ts
+++ b/http/index.ts
@@ -1,2 +1,2 @@
declare var module, require;
-module.exports = require("http/http");
\ No newline at end of file
+module.exports = require("http/http-common");
\ No newline at end of file