-
Notifications
You must be signed in to change notification settings - Fork 0
HttpRequest class
Ron Buckton edited this page Jan 15, 2015
·
2 revisions
Describes a request to be executed asynchronously using HTTP.
export class HttpRequest {
constructor(method?: string, url?: string | Uri);
public body: any;
public method: string;
public url: Url;
public setRequestHeader(key: string, value: string): void;
}
- new HttpRequest(String,String|Uri)
- Creates a new HttpRequest
- body
- Gets or sets the body of the request
- method
- Gets or sets the HTTP method for the request
- url
- Gets or sets the url for the request
- setRequestHeader(String,String)
- Sets a named request header
- Supported Platforms: Browser
- Module: httpclient
- Library: httpclient.ts