Class HttpResponseStream
Represents a way to manage HTTP requests with their output streams, without relying on synchronous content.
public sealed class HttpResponseStream
- Inheritance
-
HttpResponseStream
- Inherited Members
Properties
- 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
- Close()
Closes this HTTP response stream connection between the server and the client and returns an empty HttpResponse to finish the HTTP server context.
- 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(HttpStatusInformation)
Sets the HTTP status code and description for 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.
- Write(byte[])
Writes an sequence of bytes to the HTTP response stream.
- Write(ReadOnlySpan<byte>)
Writes an sequence of bytes to the HTTP response stream.