Sisk

Constructor

HttpResponse constructor

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

HttpResponse() #

Creates an new HttpResponse instance with HTTP OK status code and no content.

C#
public HttpResponse()

HttpResponse(int) #

Creates an new HttpResponse instance with given status code.

C#
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.

C#
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.

C#
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.

C#
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.

C#
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.

C#
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.

C#
public HttpResponse(in HttpStatusInformation status)

Parameters #

status HttpStatusInformation

The HttpStatusInformation of this HTTP response.

Type to search the documentation and the API reference.