Class HttpResponseExtensions
Namespace: Sisk.Core.Http
Assembly: Sisk.Core.dll
Provides useful extensions for HttpResponse objects.
public static class HttpResponseExtensions
Inheritance
object ← HttpResponseExtensions
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
WithContent<THttpResponse>(THttpResponse, string)
Sets an UTF-8 string as the HTTP response content in this HttpResponse.
WithContent<THttpResponse>(THttpResponse, string, Encoding?, string)
Sets an string as the HTTP response content in this HttpResponse.
WithContent<THttpResponse>(THttpResponse, HttpContent)
Sets an HttpContent as the HTTP content body in this HttpResponse.
Sets a cookie and sends it in the response to be set by the client.
WithCookie<THttpResponse>(THttpResponse, Cookie)
Sets a cookie and sends it in the response to be set by the client.
WithHeader<THttpResponse>(THttpResponse, string, string)
Sets an HTTP header in this HttpResponse.
WithHeader<THttpResponse>(THttpResponse, NameValueCollection)
Sets an list of HTTP headers in this HttpResponse.
WithHeader<THttpResponse>(THttpResponse, StringKeyStoreCollection)
Sets an list of HTTP headers in this HttpResponse.
WithStatus<THttpResponse>(THttpResponse, int)
Sets the HTTP status code of this HttpResponse.
WithStatus<THttpResponse>(THttpResponse, HttpStatusCode)
Sets the HTTP status code of this HttpResponse.
WithStatus<THttpResponse>(THttpResponse, in HttpStatusInformation)
Sets the HTTP status code of this HttpResponse.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語