OwinRequest Class

 

This wraps OWIN environment dictionary and provides strongly typed accessors.

Namespace:   Microsoft.Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Owin.OwinRequest

Syntax

public class OwinRequest : IOwinRequest
public ref class OwinRequest : IOwinRequest
type OwinRequest = 
    class
        interface IOwinRequest
    end
Public Class OwinRequest
    Implements IOwinRequest

Constructors

Name Description
System_CAPS_pubmethod OwinRequest()

Create a new context with only request and response header collections.

System_CAPS_pubmethod OwinRequest(IDictionary<String, Object>)

Create a new environment wrapper exposing request properties.

Properties

Name Description
System_CAPS_pubproperty Accept

Gets or set the Accept header.

System_CAPS_pubproperty Body

Gets or set the owin.RequestBody Stream.

System_CAPS_pubproperty CacheControl

Gets or sets the Cache-Control header.

System_CAPS_pubproperty CallCancelled

Gets or sets the cancellation token for the request.

System_CAPS_pubproperty ContentType

Gets or sets the Content-Type header.

System_CAPS_pubproperty Context

Gets the request context.

System_CAPS_pubproperty Cookies

Gets the collection of Cookies for this request.

System_CAPS_pubproperty Environment

Gets the OWIN environment.

System_CAPS_pubproperty Headers

Gets the request headers.

System_CAPS_pubproperty Host

Gets or set the Host header. May include the port.

System_CAPS_pubproperty IsSecure

Returns true if the owin.RequestScheme is https.

System_CAPS_pubproperty LocalIpAddress

Gets or set the server.LocalIpAddress.

System_CAPS_pubproperty LocalPort

Gets or set the server.LocalPort.

System_CAPS_pubproperty MediaType

Gets or sets the Media-Type header.

System_CAPS_pubproperty Method

Gets or set the HTTP method.

System_CAPS_pubproperty Path

Gets or set the request path from owin.RequestPath.

System_CAPS_pubproperty PathBase

Gets or set the owin.RequestPathBase.

System_CAPS_pubproperty Protocol

Gets or set the owin.RequestProtocol.

System_CAPS_pubproperty Query

Gets the query value collection parsed from owin.RequestQueryString.

System_CAPS_pubproperty QueryString

Gets or set the query string from owin.RequestQueryString.

System_CAPS_pubproperty RemoteIpAddress

Gets or set the server.RemoteIpAddress.

System_CAPS_pubproperty RemotePort

Gets or set the server.RemotePort.

System_CAPS_pubproperty Scheme

Gets or set the HTTP request scheme from owin.RequestScheme.

System_CAPS_pubproperty Uri

Gets the uniform resource identifier (URI) associated with the request.

System_CAPS_pubproperty User

Gets or set the server.User.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod Get<T>(String)

Gets a value from the OWIN environment, or returns default(T) if not present.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReadFormAsync()

Asynchronously reads and parses the request body as a form.

System_CAPS_pubmethod Set<T>(String, T)

Sets the given key and value in the OWIN environment.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin Namespace

Return to top