Class
HttpResponseStreamManager
Represents a way to manage HTTP requests with their output streams, without relying on synchronous content.
public sealed class HttpResponseStreamManagerInheritance #
object ← HttpResponseStreamManager
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties #
| Name | Description |
|---|---|
| ResponseStream | Gets the Stream that represents the HTTP response output stream. |
| SendChunked | Gets or sets whether this HTTP response stream should use chunked transfer encoding. |
Methods #
| Name | Description |
|---|---|
| Close() | Closes this HTTP response stream connection between the server and the client and returns an empty HttpResponse to finish the HTTP server context. |
| GetStreamWriter(string?, Encoding?, string?) | Returns a StreamWriter for writing to the response stream, setting the content type and encoding. |
| SetContentLength(long) | Sets the Content-Length header of this response stream. If this response stream is using chunked transfer encoding, this method will do nothing. |
| SetCookie(Cookie) | Sets a cookie and sends it in the response to be set by the client. |
| SetCookie(string, string) | Sets a cookie and sends it in the response to be set by the client. |
| SetCookie(string, string, DateTime?, TimeSpan?, string?, string?, bool?, bool?, string?) | Sets a cookie and sends it in the response to be set by the client. |
| SetHeader(string, object?) | Sets the specific HTTP header into this response stream. |
| SetStatus(int) | Sets the HTTP status code for this response stream. |
| SetStatus(HttpStatusCode) | Sets the HTTP status code for this response stream. |
| SetStatus(HttpStatusInformation) | Sets the HTTP status code and description for this response stream. |
| Write(ReadOnlySpan<byte>) | Writes an sequence of bytes to the HTTP response stream. |
| Write(byte[]) | Writes an sequence of bytes to the HTTP response stream. |
| Write(byte[], int, int) | Writes a range of bytes from a byte array to the HTTP response stream. |