Sisk

Class

HttpHostContext.HttpResponse

Namespace
Sisk.Cadente
Assembly
Sisk.Cadente.dll

Represents an HTTP response.

C#
public sealed class HttpHostContext.HttpResponse

Inheritance #

object ← HttpHostContext.HttpResponse

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties #

NameDescription
HeadersGets or sets the list of headers associated with the response.
HeadersGets or sets the list of headers associated with the response.
StatusCodeGets or sets the HTTP status code of the response.
StatusCodeGets or sets the HTTP status code of the response.
StatusDescriptionGets or sets the status description of the response.
StatusDescriptionGets or sets the status description of the response.

Methods #

NameDescription
GetResponseStreamAsync(bool)Asynchronously gets the content stream for the response.
GetResponseStreamAsync(bool)Asynchronously gets the content stream for the response.
WriteInlineContent(ReadOnlySpan<byte>)Writes response headers and a known fixed-size body in a single operation.
WriteInlineContent(ReadOnlySpan<byte>)Writes response headers and a known fixed-size body in a single operation.
WriteInlineContentAsync(ReadOnlyMemory<byte>, CancellationToken)Asynchronously writes response headers and a known fixed-size body in a single operation.
WriteInlineContentAsync(ReadOnlyMemory<byte>, CancellationToken)Asynchronously writes response headers and a known fixed-size body in a single operation.

Type to search the documentation and the API reference.