Logo DataHubClient

HttpResponse Type

A transport-agnostic HTTP response returned by an IHttpClient implementation. Resource APIs inspect the status code and decode the body into model classes.

Constructors

Constructor Description

HttpResponse(statusCode, body, headers)

Full Usage: HttpResponse(statusCode, body, headers)

Parameters:
    statusCode : int
    body : string
    headers : ResizeArray<string * string>

Returns: HttpResponse
statusCode : int
body : string
headers : ResizeArray<string * string>
Returns: HttpResponse

Instance members

Instance member Description

this.Body

Full Usage: this.Body

Returns: string

The raw response body as a string (typically JSON).

Returns: string

this.Headers

Full Usage: this.Headers

Returns: ResizeArray<string * string>

The response headers as name/value pairs.

Returns: ResizeArray<string * string>

this.StatusCode

Full Usage: this.StatusCode

Returns: int

The numeric HTTP status code of the response.

Returns: int

Type something to start searching.