Microsoft.AspNetCore.WebUtilities Namespace

Contains commonly used utilities for ASP.NET Core applications, including tools for working with forms, multipart messages, query strings, encoder/decoders and request/response streams.

Classes

Base64UrlTextEncoder
BufferedReadStream

A Stream that wraps another stream and allows reading lines. The data is buffered in memory.

FileBufferingReadStream

A Stream that wraps another stream and enables rewinding by buffering the content as it is read. The content is buffered in memory up to a certain size and then spooled to a temp file on disk. The temp file will be deleted on Dispose.

FileBufferingWriteStream

A Stream that buffers content to be written to disk. Use DrainBufferAsync(Stream, CancellationToken) to write buffered content to a target Stream.

FileMultipartSection

Represents a file multipart section

FormMultipartSection

Represents a form multipart section

FormPipeReader

Used to read an 'application/x-www-form-urlencoded' form. Internally reads from a PipeReader.

FormReader

Used to read an 'application/x-www-form-urlencoded' form.

HttpRequestStreamReader
HttpResponseStreamWriter

Writes to the Stream using the supplied Encoding. It does not write the BOM and also does not close the stream.

MultipartReader
MultipartSection
MultipartSectionConverterExtensions

Various extensions for converting multipart sections

MultipartSectionStreamExtensions

Various extension methods for dealing with the section body stream

QueryHelpers

Provides methods for parsing and manipulating query strings.

ReasonPhrases
StreamHelperExtensions
WebEncoders

Contains utility APIs to assist with common encoding and decoding operations.

Structs

KeyValueAccumulator