http client reworked (temporary getString, getJSON and getImage in separate file)

This commit is contained in:
Vladimir Enchev
2014-04-23 17:00:38 +03:00
parent 24e817916e
commit 1bf9c1ecaa
6 changed files with 192 additions and 163 deletions

View File

@@ -346,7 +346,8 @@ declare module com {
export module ion {
export class Ion {
static with(context: any, url : string) : any;
static with(context: any, url: string): any;
static getDefault(context: any): any;
}
}
@@ -356,6 +357,26 @@ declare module com {
constructor(context: any);
}
}
export module http {
export module libcore {
export class RawHeaders {
constructor();
add(name: string, v: string);
}
}
export class AsyncHttpClient {
static getDefaultInstance(): any;
}
export module callback {
export class HttpConnectCallback {
constructor(params: any);
}
}
}
}
}
}