ContentstackResponse
ContentstackResponse
Abstract class for Response objects.
| Name | Type | Description |
|---|---|---|
| ContentLength | long | Returns the content length of the HTTP response. |
| ContentType | string | Gets the property ContentType. |
| IsSuccessStatusCode | bool | Gets a value that indicates whether the HTTP response was successful. |
| ResponseBody | HttpResponseMessage | The entire response body from the HTTP response. |
| StatusCode | HttpStatusCode | The HTTP status code from the HTTP response. |
GetHeaderNames
Gets the header names from HTTP response headers.
GetHeaderValue
Gets the value for the header name from HTTP response headers.
| Name | Type | Description |
|---|---|---|
| headerName (required) | string | Header name for which value is needed. |
IsHeaderPresent
Return true if header name present in HTTP response headers.
| Name | Type | Description |
|---|---|---|
| headerName (required) | string | Header name to check if its present. |
OpenJsonObjectResponse
Json Object format response.
OpenResponse
String format response.
OpenTResponse
Type response to serialize the response.