Microsoft.AspNetCore.Http Namespace

Classes

BindingAddress
ConnectionInfo
CookieBuilder

Defines settings used to create a cookie.

CookieOptions

Options used to create a new cookie.

DefaultHttpContext
DefaultHttpContextFactory
Endpoint

Represents a logical endpoint in an application.

EndpointHttpContextExtensions

Extension methods to expose Endpoint on HttpContext.

EndpointMetadataCollection

A collection of arbitrary metadata associated with an endpoint.

FormCollection

Contains the parsed form values.

FormFile

Default implementation of IFormFile.

FormFileCollection

Default implementation of IFormFileCollection.

HeaderDictionary

Represents a wrapper for RequestHeaders and ResponseHeaders.

HeaderDictionaryExtensions
HeaderDictionaryTypeExtensions
HttpContext

Encapsulates all HTTP-specific information about an individual HTTP request.

HttpContextAccessor
HttpContextFactory
HttpContextServerVariableExtensions
HttpMethods
HttpRequest

Represents the incoming side of an individual HTTP request.

HttpRequestRewindExtensions

Extension methods for enabling buffering in an HttpRequest.

HttpResponse

Represents the outgoing side of an individual HTTP request.

HttpResponseWritingExtensions

Convenience methods for writing to the response.

MiddlewareFactory
QueryCollection

The HttpRequest query string collection

RequestFormReaderExtensions
RequestTrailerExtensions

HttpRequest extensions for working with request trailing headers.

ResponseExtensions
ResponseTrailerExtensions
SendFileFallback
SendFileResponseExtensions

Provides extensions for HttpResponse exposing the SendFile extension.

SessionExtensions
StatusCodes
StreamResponseBodyFeature

An implementation of IHttpResponseBodyFeature that aproximates all of the APIs over the given Stream.

WebSocketAcceptContext
WebSocketManager

Manages the establishment of WebSocket connections for a specific HTTP request.

Structs

EndpointMetadataCollection.Enumerator

Enumerates the elements of an EndpointMetadataCollection.

FormCollection.Enumerator
FragmentString

Provides correct handling for FragmentString value when needed to generate a URI string

HeaderDictionary.Enumerator
HostString

Represents the host portion of a URI can be used to construct URI's properly formatted and encoded for use in HTTP headers.

PathString

Provides correct escaping for Path and PathBase values when needed to reconstruct a request or redirect URI string

QueryCollection.Enumerator
QueryString

Provides correct handling for QueryString value when needed to reconstruct a request or redirect URI string

Interfaces

IFormCollection

Represents the parsed form values sent with the HttpRequest.

IFormFile

Represents a file sent with the HttpRequest.

IFormFileCollection

Represents the collection of files sent with the HttpRequest.

IHeaderDictionary

Represents HttpRequest and HttpResponse headers

IHttpContextAccessor
IHttpContextFactory
IMiddleware

Defines middleware that can be added to the application's request pipeline.

IMiddlewareFactory

Provides methods to create middleware.

IQueryCollection

Represents the HttpRequest query string collection

IRequestCookieCollection

Represents the HttpRequest cookie collection

IResponseCookies

A wrapper for the response Set-Cookie header.

ISession

Enums

CookieSecurePolicy

Determines how cookie security properties are set.

SameSiteMode

Used to set the SameSite field on response cookies to indicate if those cookies should be included by the client on future "same-site" or "cross-site" requests. RFC Draft: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.1

Delegates

RequestDelegate

A function that can process an HTTP request.