Share via


Microsoft.AspNetCore.Http.Features Namespace

Contains types related to Features.

Classes

DefaultSessionFeature

This type exists only for the purpose of unit testing where the user can directly set the Session property without the need for creating a ISessionFeature.

FeatureCollection

Default implementation for IFeatureCollection.

FeatureCollectionExtensions

Extension methods for getting feature from IFeatureCollection

FormFeature

Default implementation for IFormFeature.

FormOptions

Options to configure reading the request body as a HTTP form.

HttpConnectionFeature

Default implementation for IHttpConnectionFeature.

HttpRequestFeature

Default implementation for IHttpRequestFeature.

HttpRequestIdentifierFeature

Default implementation for IHttpRequestIdentifierFeature.

HttpRequestLifetimeFeature

Default implementation for IHttpRequestLifetimeFeature.

HttpResponseFeature

Default implementation for IHttpResponseFeature.

ItemsFeature

Default implementation for IItemsFeature.

QueryFeature

Default implementation for IQueryFeature.

RequestBodyPipeFeature

Default implementation for IRequestBodyPipeFeature.

RequestCookiesFeature

Default implementation for IRequestCookiesFeature.

RequestServicesFeature

An implementation for IServiceProvidersFeature for accessing request services.

ResponseCookiesFeature

Default implementation of IResponseCookiesFeature.

RouteValuesFeature

A feature for routing values. Use Features to access the values associated with the current request.

ServiceProvidersFeature

Default implementation for IServiceProvidersFeature.

TlsConnectionFeature

Default implementation for TlsConnectionFeature.

Structs

FeatureReference<T>

A cached reference to a feature.

FeatureReferences<TCache>

A reference to a collection of features.

Interfaces

IBadRequestExceptionFeature

Provides information about rejected HTTP requests.

IEndpointFeature

A feature interface for endpoint routing. Use Features to access an instance associated with the current request.

IFeatureCollection

Represents a collection of HTTP features.

IFormFeature

Allows reading the request body as a HTTP form.

IHttpActivityFeature

Feature to access the Activity associated with a request.

IHttpBodyControlFeature

Controls the IO behavior for the Body and Body

IHttpBufferingFeature
IHttpConnectionFeature

Information regarding the TCP/IP connection carrying the request.

IHttpExtendedConnectFeature

Used with protocols that require the Extended CONNECT handshake such as HTTP/2 WebSockets and WebTransport. https://www.rfc-editor.org/rfc/rfc8441#section-4

IHttpMaxRequestBodySizeFeature

Feature to inspect and modify the maximum request body size for a single request.

IHttpMetricsTagsFeature

Provides access to tags added to HTTP request duration metrics. This feature isn't set if the counter isn't enabled.

IHttpRequestBodyDetectionFeature

Used to indicate if the request can have a body.

IHttpRequestFeature

Contains the details of a given request. These properties should all be mutable. None of these properties should ever be set to null.

IHttpRequestIdentifierFeature

Feature to uniquely identify a request.

IHttpRequestLifetimeFeature

Provides access to the HTTP request lifetime operations.

IHttpRequestTrailersFeature

This feature exposes HTTP request trailer headers, either for HTTP/1.1 chunked bodies or HTTP/2 trailing headers.

IHttpResetFeature

Used to send reset messages for protocols that support them such as HTTP/2 or HTTP/3.

IHttpResponseBodyFeature

An aggregate of the different ways to interact with the response body.

IHttpResponseFeature

Represents the fields and state of an HTTP response.

IHttpResponseTrailersFeature

Provides access to response trailers.

Response trailers allow for additional headers to be sent at the end of an HTTP/1.1 (chunked) or HTTP/2 response. For more details, see RFC7230.

IHttpsCompressionFeature

Configures response compression behavior for HTTPS on a per-request basis.

IHttpSendFileFeature

Provides an efficient mechanism for transferring files from disk to the network.

IHttpUpgradeFeature

Provides access to server upgrade features.

IHttpWebSocketFeature

Provides access to server websocket features.

IHttpWebTransportFeature

API for accepting and retrieving WebTransport sessions.

IItemsFeature

Provides a key/value collection that can be used to share data within the scope of this request.

IQueryFeature

Provides access to the IQueryCollection associated with the HTTP request.

IRequestBodyPipeFeature

Represents the HTTP request body as a PipeReader.

IRequestCookiesFeature

Provides access to request cookie collection.

IResponseCookiesFeature

A helper for creating the response Set-Cookie header.

IRouteValuesFeature

A feature interface for routing values. Use Features to access the values associated with the current request.

IServerVariablesFeature

This feature provides access to request server variables set.

IServiceProvidersFeature

Provides acccess to the request-scoped IServiceProvider.

ISessionFeature

Provides access to the ISession for the current request.

ITlsConnectionFeature

Provides access to TLS features associated with the current HTTP connection.

ITlsTokenBindingFeature

Provides information regarding TLS token binding parameters.

ITrackingConsentFeature

Used to query, grant, and withdraw user consent regarding the storage of user information related to site activity and functionality.

IWebTransportSession

Controls the session and streams of a WebTransport session.

Enums

HttpsCompressionMode

Use to dynamically control response compression for HTTPS requests.

Remarks

For more information about features, see Request Features in ASP.NET Core.