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
|
Full Usage:
HttpResponse(statusCode, body, headers)
Parameters:
int
body : string
headers : ResizeArray<string * string>
Returns: HttpResponse
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Body
Returns: string
|
The raw response body as a string (typically JSON).
|
Full Usage:
this.Headers
Returns: ResizeArray<string * string>
|
The response headers as name/value pairs.
|
Full Usage:
this.StatusCode
Returns: int
|
The numeric HTTP status code of the response.
|
DataHubClient