Constructor HttpResponse
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
statusintThe 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
statusintThe status code of this HTTP response.
contentHttpContentThe 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
contentHttpContentThe 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
stringContentstringThe 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
statusHttpStatusCodeThe HttpStatusCode of this HTTP response.
stringContentstringThe 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
statusHttpStatusCodeThe HttpStatusCode of this HTTP response.
contentHttpContentThe response content, if any.
HttpResponse(in HttpStatusInformation)
Creates an new HttpResponse instance with given status code.
public HttpResponse(in HttpStatusInformation status)
Parameters
statusHttpStatusInformationThe HttpStatusInformation of this HTTP response.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語