Table of Contents

Class HttpResponseStream

Namespace
Sisk.Core.Http.Streams
Assembly
Sisk.Core.dll

Represents a way to manage HTTP requests with their output streams, without relying on synchronous content.

public sealed class HttpResponseStream : CookieHelper
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.

SetCookieHeader(string, string)

Abstract method that calls the "Set-Cookie" header with the value of the created cookie.

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.