Skip to content
Ron Buckton edited this page Jan 15, 2015 · 2 revisions

Describes a request to be executed asynchronously using HTTP.

Syntax

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

Constructors

new HttpRequest(String,String|Uri)
Creates a new HttpRequest

Properties

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

Methods

setRequestHeader(String,String)
Sets a named request header

Requirements

  • Supported Platforms: Browser
  • Module: httpclient
  • Library: httpclient.ts

See Also

Clone this wiki locally