OwinRequest Class

This wraps OWIN environment dictionary and provides strongly typed accessors.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.OwinRequest

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

Syntax

'Declaration
Public Class OwinRequest _
    Implements IOwinRequest
'Usage
Dim instance As OwinRequest
public class OwinRequest : IOwinRequest
public ref class OwinRequest : IOwinRequest
type OwinRequest =  
    class 
        interface IOwinRequest 
    end
public class OwinRequest implements IOwinRequest

The OwinRequest type exposes the following members.

Constructors

  Name Description
Public method OwinRequest() Create a new context with only request and response header collections.
Public method OwinRequest(IDictionary<String, Object>) Initializes a new instance of the OwinRequest class.

Top

Properties

  Name Description
Public property Accept The Accept header
Public property Body Gets or sets the body for this request.
Public property CacheControl The Cache-Control header
Public property CallCancelled owin.CallCancelled
Public property ContentType The Content-Type header
Public property Context
Public property Cookies The Cookie header parsed into a collection
Public property Environment Gets the environment associated with the request.
Public property Headers owin.RequestHeaders in a wrapper
Public property Host Gets or sets the host header value to use in an OWIN request.
Public property IsSecure Gets a value indicating whether OWIN connection uses secure sockets.
Public property LocalIpAddress server.LocalIpAddress
Public property LocalPort server.LocalPort
Public property MediaType The Media-Type header
Public property Method Gets or sets the method for the request.
Public property Path Gets or sets the virtual path of the current request.
Public property PathBase Gets or sets the route path to the OWIN request.
Public property Protocol owin.RequestProtocol
Public property Query owin.RequestQueryString parsed into a collection
Public property QueryString Gets the collection of HTTP query string variables.
Public property RemoteIpAddress server.RemoteIpAddress
Public property RemotePort server.RemotePort
Public property Scheme Gets or sets the scheme name for this request.
Public property Uri Gets the information about the URI of the current request.
Public property User Gets or sets the user name for this request.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Get<T> Gets a specified OWIN request.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ReadFormAsync Parses the request body as a form
Public method Set<T> Sets the specified request.
Public method ToString (Inherited from Object.)

Top

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

Reference

Microsoft.Owin Namespace