Table of Contents

Method WithStatus

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

WithStatus<THttpResponse>(THttpResponse, int)

Sets the HTTP status code of this HttpResponse.

public static THttpResponse WithStatus<THttpResponse>(this THttpResponse response, int httpStatusCode) where THttpResponse : HttpResponse

Parameters

response THttpResponse

The HttpResponse object.

httpStatusCode int

The HTTP status code.

Returns

THttpResponse

The self THttpResponse object.

Type Parameters

THttpResponse

The type which implements HttpResponse.

WithStatus<THttpResponse>(THttpResponse, HttpStatusCode)

Sets the HTTP status code of this HttpResponse.

public static THttpResponse WithStatus<THttpResponse>(this THttpResponse response, HttpStatusCode httpStatusCode) where THttpResponse : HttpResponse

Parameters

response THttpResponse

The HttpResponse object.

httpStatusCode HttpStatusCode

The HTTP status code.

Returns

THttpResponse

The self THttpResponse object.

Type Parameters

THttpResponse

The type which implements HttpResponse.

WithStatus<THttpResponse>(THttpResponse, in HttpStatusInformation)

Sets the HTTP status code of this HttpResponse.

public static THttpResponse WithStatus<THttpResponse>(this THttpResponse response, in HttpStatusInformation statusInformation) where THttpResponse : HttpResponse

Parameters

response THttpResponse

The HttpResponse object.

statusInformation HttpStatusInformation

The HTTP status information.

Returns

THttpResponse

The self THttpResponse object.

Type Parameters

THttpResponse

The type which implements HttpResponse.