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 | |
---|---|---|
OwinRequest() | Create a new context with only request and response header collections. |
|
OwinRequest(IDictionary<String, Object>) | Create a new environment wrapper exposing request properties. |
Properties
Name | Description | |
---|---|---|
Accept | Gets or set the Accept header. |
|
Body | Gets or set the owin.RequestBody Stream. |
|
CacheControl | Gets or sets the Cache-Control header. |
|
CallCancelled | Gets or sets the cancellation token for the request. |
|
ContentType | Gets or sets the Content-Type header. |
|
Context | Gets the request context. |
|
Cookies | Gets the collection of Cookies for this request. |
|
Environment | Gets the OWIN environment. |
|
Headers | Gets the request headers. |
|
Host | Gets or set the Host header. May include the port. |
|
IsSecure | Returns true if the owin.RequestScheme is https. |
|
LocalIpAddress | Gets or set the server.LocalIpAddress. |
|
LocalPort | Gets or set the server.LocalPort. |
|
MediaType | Gets or sets the Media-Type header. |
|
Method | Gets or set the HTTP method. |
|
Path | Gets or set the request path from owin.RequestPath. |
|
PathBase | Gets or set the owin.RequestPathBase. |
|
Protocol | Gets or set the owin.RequestProtocol. |
|
Query | Gets the query value collection parsed from owin.RequestQueryString. |
|
QueryString | Gets or set the query string from owin.RequestQueryString. |
|
RemoteIpAddress | Gets or set the server.RemoteIpAddress. |
|
RemotePort | Gets or set the server.RemotePort. |
|
Scheme | Gets or set the HTTP request scheme from owin.RequestScheme. |
|
Uri | Gets the uniform resource identifier (URI) associated with the request. |
|
User | Gets or set the server.User. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
Get<T>(String) | Gets a value from the OWIN environment, or returns default(T) if not present. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ReadFormAsync() | Asynchronously reads and parses the request body as a form. |
|
Set<T>(String, T) | Sets the given key and value in the OWIN environment. |
|
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
Return to top