Methods
requestAsync
- requestAsync<Request, Response>(method: "GET" | "POST", url: string, content?: Request, callback?: (response: Response) => void, errorCallback?: (err: any) => void): void
-
Type parameters
Parameters
-
method: "GET" | "POST"
-
url: string
-
Optional content: Request
-
Optional callback: (response: Response) => void
-
- (response: Response): void
-
Optional errorCallback: (err: any) => void
Returns void
Implement it to wrap any http client