typescriptkit
Version:
Basic functionality for TypeScript projects
17 lines (16 loc) • 823 B
TypeScript
import { IHttpRequestExecutor } from './IHttpRequestExecutor';
/**
* Implementation of the xmlHttpclient converting eventhandlers to callbacks (For internal use)
*/
export declare class HttpRequestExecutor implements IHttpRequestExecutor {
/**
* execte the Http GET call
* @param url The url to point the request to
* @param httpheaders (optional) The httpHeaders array to append to the request
* @param success (optional) The callback after a succesfull request
* @param error (optional) The callback after a failed request
*/
executeHttpGet: (url: string, httpHeaders?: any[], success?: (responseText: string) => void, error?: (responseText: string, statusCode: number) => void) => void;
private applyRequestHeaders(xmlHttp, httpHeaders);
}
export default HttpRequestExecutor;