Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
Microsoft.AspNetCore.Http.Features
System Library
| Author | Microsoft |
| Version | 10.0.1 |
| Tags |
Public Types
Microsoft.​AspNetCore.​Antiforgery
interface IAntiforgeryValidationFeature
Used to set the result of anti-forgery token validation.
Microsoft.​AspNetCore.​Http
class CookieOptions
Options used to create a new cookie.
interface IFormCollection
Represents the parsed form values sent with the HttpRequest.
interface IFormFile
Represents a file sent with the HttpRequest.
interface IFormFileCollection
Represents the collection of files sent with the HttpRequest.
interface IHeaderDictionary
Represents HttpRequest and HttpResponse headers
interface IQueryCollection
Represents the HttpRequest query string collection
interface IRequestCookieCollection
Represents the HttpRequest cookie collection
interface IResponseCookies
A wrapper for the response Set-Cookie header.
interface ISession
Stores user data while the user browses a web application. Session state uses a store maintained by the application
to persist data across requests from a client. The session data is backed by a cache and considered ephemeral data.
enum 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: <see href="https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.1" />
class WebSocketAcceptContext
A context for negotiating a websocket upgrade.
Microsoft.​AspNetCore.​Http.​Features
enum HttpsCompressionMode
Use to dynamically control response compression for HTTPS requests.
interface IBadRequestExceptionFeature
Provides information about rejected HTTP requests.
interface IFormFeature
Allows reading the request body as a HTTP form.
interface IHttpBodyControlFeature
Controls the IO behavior for the <see cref="P:Microsoft.AspNetCore.Http.Features.IHttpRequestFeature.Body" /> and <see cref="P:Microsoft.AspNetCore.Http.Features.IHttpResponseFeature.Body" />
interface IHttpConnectionFeature
Information regarding the TCP/IP connection carrying the request.
interface 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
interface IHttpMaxRequestBodySizeFeature
Feature to inspect and modify the maximum request body size for a single request.
interface IHttpMetricsTagsFeature
Provides access to tags added to HTTP request duration metrics. This feature isn't set if the counter isn't enabled.
interface IHttpRequestBodyDetectionFeature
Used to indicate if the request can have a body.
interface IHttpRequestFeature
Contains the details of a given request. These properties should all be mutable.
None of these properties should ever be set to null.
interface IHttpRequestIdentifierFeature
Feature to uniquely identify a request.
interface IHttpRequestLifetimeFeature
Provides access to the HTTP request lifetime operations.
interface IHttpRequestTrailersFeature
This feature exposes HTTP request trailer headers, either for HTTP/1.1 chunked bodies or HTTP/2 trailing headers.
interface IHttpResetFeature
Used to send reset messages for protocols that support them such as HTTP/2 or HTTP/3.
interface IHttpResponseBodyFeature
An aggregate of the different ways to interact with the response body.
interface IHttpResponseFeature
Represents the fields and state of an HTTP response.
interface IHttpResponseTrailersFeature
Provides access to response trailers.
<para>
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 <see href="https://tools.ietf.org/html/rfc7230#section-4.1.2">RFC7230</see>.
</para>
interface IHttpsCompressionFeature
Configures response compression behavior for HTTPS on a per-request basis.
interface IHttpUpgradeFeature
Provides access to server upgrade features.
interface IHttpWebSocketFeature
Provides access to server websocket features.
interface IHttpWebTransportFeature
API for accepting and retrieving WebTransport sessions.
interface IItemsFeature
Provides a key/value collection that can be used to share data within the scope of this request.
interface IQueryFeature
Provides access to the <see cref="T:Microsoft.AspNetCore.Http.IQueryCollection" /> associated with the HTTP request.
interface IRequestBodyPipeFeature
Represents the HTTP request body as a <see cref="T:System.IO.Pipelines.PipeReader" /> .
interface IRequestCookiesFeature
Provides access to request cookie collection.
interface IResponseCookiesFeature
A helper for creating the response Set-Cookie header.
interface IServerVariablesFeature
This feature provides access to request server variables set.
interface IServiceProvidersFeature
Provides acccess to the request-scoped <see cref="T:System.IServiceProvider" /> .
interface ISessionFeature
Provides access to the <see cref="T:Microsoft.AspNetCore.Http.ISession" /> for the current request.
interface ITlsConnectionFeature
Provides access to TLS features associated with the current HTTP connection.
interface ITlsTokenBindingFeature
Provides information regarding TLS token binding parameters.
interface ITrackingConsentFeature
Used to query, grant, and withdraw user consent regarding the storage of user
information related to site activity and functionality.
interface IWebTransportSession
Controls the session and streams of a WebTransport session.
Microsoft.​AspNetCore.​Http.​Features.​Authentication
interface IHttpAuthenticationFeature
The HTTP authentication feature.