Table of Contents

Constructor HttpResponse

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

HttpResponse()

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

public HttpResponse()

HttpResponse(HttpStatusCode)

Creates an new HttpResponse instance with given status code.

public HttpResponse(HttpStatusCode status)

Parameters

status HttpStatusCode

The HttpStatusCode of this HTTP response.

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, 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.