HttpRequestStreamReader Class

Definition

A TextReader to read the HTTP request stream.

public ref class HttpRequestStreamReader : System::IO::TextReader
public class HttpRequestStreamReader : System.IO.TextReader
type HttpRequestStreamReader = class
    inherit TextReader
Public Class HttpRequestStreamReader
Inherits TextReader
Inheritance
HttpRequestStreamReader

Constructors

HttpRequestStreamReader(Stream, Encoding)

Initializes a new instance of HttpRequestStreamReader.

HttpRequestStreamReader(Stream, Encoding, Int32)

Initializes a new instance of HttpRequestStreamReader.

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

Initializes a new instance of HttpRequestStreamReader.

Methods

Dispose(Boolean)

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

Peek()

Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the reader.

Read()

Reads the next character from the text reader and advances the character position by one character.

Read(Char[], Int32, Int32)

Reads a specified maximum number of characters from the current reader and writes the data to a buffer, beginning at the specified index.

Read(Span<Char>)

Reads the characters from the current reader and writes the data to the specified buffer.

ReadAsync(Char[], Int32, Int32)

Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index.

ReadAsync(Memory<Char>, CancellationToken)

Asynchronously reads the characters from the current stream into a memory block.

ReadLine()

Reads a line of characters from the text reader and returns the data as a string.

ReadLineAsync()

Reads a line of characters asynchronously and returns the data as a string.

ReadToEndAsync()

Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string.

Applies to