Sisk

Method

HttpResponseStreamManager.GetStreamWriter

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

GetStreamWriter(string?, Encoding?, string?) #

Returns a StreamWriter for writing to the response stream, setting the content type and encoding.

C#
public StreamWriter GetStreamWriter(string? contentType, Encoding? encoding, string? newLine = "\r\n")

Parameters #

contentType string?

The content type of the response, or null to omit the content type header.

encoding Encoding?

The encoding to use for the response, or null to use the default encoding.

newLine string?

The new line string literal for the writer.

Returns #

StreamWriter

A StreamWriter for writing to the response stream.

Type to search the documentation and the API reference.