Sisk

Method

HttpResponseExtensions.WithHeader<THttpResponse>

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

WithHeader<THttpResponse>(THttpResponse, string, string) #

Adds a header to the HTTP response.

C#
public static THttpResponse WithHeader<THttpResponse>(this THttpResponse response, string headerName, string headerValue) where THttpResponse : notnull, HttpResponse

Parameters #

response THttpResponse

headerName string

The name of the header.

headerValue string

The value of the header.

Returns #

THttpResponse

The modified HTTP response.

Type Parameters #

THttpResponse

Type to search the documentation and the API reference.