HttpResponseStreamWriter Clase

Definición

Escribe en la respuesta Stream HTTP mediante el proporcionado Encoding. No escribe la lista de materiales y tampoco cierra la secuencia.

public ref class HttpResponseStreamWriter : System::IO::TextWriter
public class HttpResponseStreamWriter : System.IO.TextWriter
type HttpResponseStreamWriter = class
    inherit TextWriter
Public Class HttpResponseStreamWriter
Inherits TextWriter
Herencia
HttpResponseStreamWriter

Constructores

HttpResponseStreamWriter(Stream, Encoding)

Inicializa una nueva instancia de la clase HttpResponseStreamWriter.

HttpResponseStreamWriter(Stream, Encoding, Int32)

Inicializa una nueva instancia de la clase HttpResponseStreamWriter.

HttpResponseStreamWriter(Stream, Encoding, Int32, ArrayPool<Byte>, ArrayPool<Char>)

Inicializa una nueva instancia de la clase HttpResponseStreamWriter.

Campos

DefaultBufferSize

Tamaño predeterminado del búfer.

Propiedades

Encoding

When overridden in a derived class, returns the character encoding in which the output is written.

Métodos

Dispose(Boolean)

Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.

DisposeAsync()

Asynchronously releases all resources used by the TextWriter object.

Flush()

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

FlushAsync()

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

Write(Char)

Writes a character to the text stream.

Write(Char[], Int32, Int32)

Writes a subarray of characters to the text stream.

Write(ReadOnlySpan<Char>)

Writes a character span to the text stream.

Write(String)

Writes a string to the text stream.

WriteAsync(Char)

Writes a character to the text stream asynchronously.

WriteAsync(Char[], Int32, Int32)

Writes a subarray of characters to the text stream asynchronously.

WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes a character memory region to the text stream.

WriteAsync(String)

Writes a string to the text stream asynchronously.

WriteLine(ReadOnlySpan<Char>)

Writes the text representation of a character span to the text stream, followed by a line terminator.

WriteLineAsync(Char)

Asynchronously writes a character to the text stream, followed by a line terminator.

WriteLineAsync(Char[], Int32, Int32)

Asynchronously writes a subarray of characters to the text stream, followed by a line terminator.

WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes the text representation of a character memory region to the text stream, followed by a line terminator.

WriteLineAsync(String)

Asynchronously writes a string to the text stream, followed by a line terminator.

Se aplica a