Constructor
HttpResponse constructor
HttpResponse() #
Creates an new HttpResponse instance with HTTP OK status code and no content.
public HttpResponse()HttpResponse(int) #
Creates an new HttpResponse instance with given status code.
public HttpResponse(int status)Parameters #
status int
The status code of this HTTP response.
HttpResponse(int, HttpContent?) #
Creates an new HttpResponse instance with given status code and HTTP content.
public HttpResponse(int status, HttpContent? content)Parameters #
status int
The status code of this HTTP response.
content HttpContent?
The response content, if any.
HttpResponse(HttpContent?) #
Creates an new HttpResponse instance with given HTTP content, with default status code as 200 OK.
public HttpResponse(HttpContent? content)Parameters #
content HttpContent?
The response content, if any.
HttpResponse(string) #
Creates an new HttpResponse instanec with given string content and status code as 200 OK.
public HttpResponse(string stringContent)Parameters #
stringContent string
The UTF-8 string content.
HttpResponse(HttpStatusCode, string) #
Creates an new HttpResponse instance with given status code and string content.
public HttpResponse(HttpStatusCode status, string stringContent)Parameters #
status HttpStatusCode
The HttpStatusCode of this HTTP response.
stringContent string
The UTF-8 string content.
HttpResponse(HttpStatusCode, HttpContent?) #
Creates an new HttpResponse instance with given status code and HTTP contents.
public HttpResponse(HttpStatusCode status, HttpContent? content)Parameters #
status HttpStatusCode
The HttpStatusCode of this HTTP response.
content HttpContent?
The response content, if any.
HttpResponse(in HttpStatusInformation) #
Creates an new HttpResponse instance with given status code.
public HttpResponse(in HttpStatusInformation status)Parameters #
status HttpStatusInformation
The HttpStatusInformation of this HTTP response.