Logo DataHubClient

HttpRequest Type

A transport-agnostic HTTP request. Resource APIs assemble these and hand them to an IHttpClient implementation, keeping DataHubClient free of any concrete HTTP library.

Constructors

Constructor Description

HttpRequest(url, method)

Full Usage: HttpRequest(url, method)

Parameters:
    url : string
    method : string

Returns: HttpRequest
url : string
method : string
Returns: HttpRequest

Instance members

Instance member Description

this.Body

Full Usage: this.Body

Returns: string option

The request body, or None for verbs that carry no payload.

Returns: string option

this.Headers

Full Usage: this.Headers

Returns: ResizeArray<string * string>

Request headers as name/value pairs. Authentication and content headers are appended here by the resource APIs before the request is sent.

Returns: ResizeArray<string * string>

this.Method

Full Usage: this.Method

Returns: string

The HTTP verb to use for the request.

Returns: string

this.Url

Full Usage: this.Url

Returns: string

The fully-qualified request URL, including any query string.

Returns: string

Type something to start searching.