Skip to content

HttpResponse

Summary

The class representing an HTTP response.

Signature

1
public sealed class HttpResponse

Namespace

cAlgo.API

Properties

StatusCode

Summary

Gets the response status code.

Signature

1
public int StatusCode {get;}

Return Value

int

IsSuccessful

Summary

Gets true if the response is successful, false otherwise.

Signature

1
public bool IsSuccessful {get;}

Return Value

bool

Body

Summary

Gets the body of the response.

Signature

1
public string Body {get;}

Return Value

string

Exception

Summary

Gets the exception thrown when sending HTTP request.

Signature

1
public HttpException Exception {get;}

Return Value

HttpException

Headers

Summary

Gets the headers contained in the response.

Signature

1
public HttpResponseHeaders Headers {get;}

Return Value

HttpResponseHeaders