Class
HttpHostContext.HttpResponse
Represents an HTTP response.
public sealed class HttpHostContext.HttpResponseInheritance #
object ← HttpHostContext.HttpResponse
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties #
| Name | Description |
|---|---|
| Headers | Gets or sets the list of headers associated with the response. |
| Headers | Gets or sets the list of headers associated with the response. |
| StatusCode | Gets or sets the HTTP status code of the response. |
| StatusCode | Gets or sets the HTTP status code of the response. |
| StatusDescription | Gets or sets the status description of the response. |
| StatusDescription | Gets or sets the status description of the response. |
Methods #
| Name | Description |
|---|---|
| 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. |