Share via


IOwinRequest Interface

Definition

This wraps OWIN environment dictionary and provides strongly typed accessors.

public interface IOwinRequest
type IOwinRequest = interface
Public Interface IOwinRequest
Derived

Properties

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

Get<T>(String)

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

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.

Applies to