This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
Typertext/lib/Typertext/GenericRequest.ts

16 lines
586 B
TypeScript
Raw Normal View History

2014-02-26 19:12:37 +00:00
//TODO comment everything
module Typertext {
import HttpMethod = Typertext.Http.HttpMethod;
import HttpPostData = Typertext.Http.HttpPostData;
import HttpResponseHandler = Typertext.Http.HttpResponseHandler;
import HttpUrl = Typertext.Http.HttpUrl;
export interface GenericRequest<T extends GenericResponseHandler<GenericResponse<any>>> {
Get(request:HttpUrl, callback:T):void;
Post(request:HttpUrl, postData:HttpPostData, callback:T):void;
RawRequest(method:HttpMethod, request:HttpUrl, postData?:HttpPostData, callback?:T):void;
}
}