DefaultHttpRequest DefaultHttpRequest DefaultHttpRequest Class

Definition

public class DefaultHttpRequest : Microsoft.AspNetCore.Http.HttpRequest
type DefaultHttpRequest = class
    inherit HttpRequest
Public Class DefaultHttpRequest
Inherits HttpRequest
Inheritance
DefaultHttpRequestDefaultHttpRequestDefaultHttpRequest

Constructors

DefaultHttpRequest(HttpContext) DefaultHttpRequest(HttpContext) DefaultHttpRequest(HttpContext)

Properties

Body Body Body
ContentLength ContentLength ContentLength
ContentType ContentType ContentType
Cookies Cookies Cookies
Form Form Form
HasFormContentType HasFormContentType HasFormContentType
Headers Headers Headers
Host Host Host
HttpContext HttpContext HttpContext
IsHttps IsHttps IsHttps
Method Method Method
Path Path Path
PathBase PathBase PathBase
Protocol Protocol Protocol
Query Query Query
QueryString QueryString QueryString
Scheme Scheme Scheme

Methods

Initialize(HttpContext) Initialize(HttpContext) Initialize(HttpContext)
ReadFormAsync(CancellationToken) ReadFormAsync(CancellationToken) ReadFormAsync(CancellationToken)
Uninitialize() Uninitialize() Uninitialize()

Extension Methods

GetMultipartBoundary(HttpRequest) GetMultipartBoundary(HttpRequest) GetMultipartBoundary(HttpRequest)
GetDisplayUrl(HttpRequest) GetDisplayUrl(HttpRequest) GetDisplayUrl(HttpRequest)

Returns the combined components of the request URL in a fully un-escaped form (except for the QueryString) suitable only for display. This format should not be used in HTTP headers or other HTTP operations.

GetEncodedPathAndQuery(HttpRequest) GetEncodedPathAndQuery(HttpRequest) GetEncodedPathAndQuery(HttpRequest)

Returns the relative url

GetEncodedUrl(HttpRequest) GetEncodedUrl(HttpRequest) GetEncodedUrl(HttpRequest)

Returns the combined components of the request URL in a fully escaped form suitable for use in HTTP headers and other HTTP operations.

GetTypedHeaders(HttpRequest) GetTypedHeaders(HttpRequest) GetTypedHeaders(HttpRequest)
EnableBuffering(HttpRequest) EnableBuffering(HttpRequest) EnableBuffering(HttpRequest)

Ensure the requestBody can be read multiple times. Normally buffers request bodies in memory; writes requests larger than 30K bytes to disk.

EnableBuffering(HttpRequest, Int32) EnableBuffering(HttpRequest, Int32) EnableBuffering(HttpRequest, Int32)

Ensure the requestBody can be read multiple times. Normally buffers request bodies in memory; writes requests larger than bufferThreshold bytes to disk.

EnableBuffering(HttpRequest, Int32, Int64) EnableBuffering(HttpRequest, Int32, Int64) EnableBuffering(HttpRequest, Int32, Int64)

Ensure the requestBody can be read multiple times. Normally buffers request bodies in memory; writes requests larger than bufferThreshold bytes to disk.

EnableBuffering(HttpRequest, Int64) EnableBuffering(HttpRequest, Int64) EnableBuffering(HttpRequest, Int64)

Ensure the requestBody can be read multiple times. Normally buffers request bodies in memory; writes requests larger than 30K bytes to disk.

EnableRewind(HttpRequest, Int32, Nullable<Int64>) EnableRewind(HttpRequest, Int32, Nullable<Int64>) EnableRewind(HttpRequest, Int32, Nullable<Int64>)
ReadFormAsync(HttpRequest, FormOptions, CancellationToken) ReadFormAsync(HttpRequest, FormOptions, CancellationToken) ReadFormAsync(HttpRequest, FormOptions, CancellationToken)

Read the request body as a form with the given options. These options will only be used if the form has not already been read.

Applies to