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
2014-02-26 13:12:37 -06:00

16 lines
586 B
TypeScript

//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;
}
}