Method
HttpResponseExtensions.WithHeader<THttpResponse>
WithHeader<THttpResponse>(THttpResponse, string, string) #
Adds a header to the HTTP response.
public static THttpResponse WithHeader<THttpResponse>(this THttpResponse response, string headerName, string headerValue) where THttpResponse : notnull, HttpResponseParameters #
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