OwinResponse Class
This wraps OWIN environment dictionary and provides strongly typed accessors.
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
| Name | Description | |
|---|---|---|
![]() | OwinResponse() | Create a new context with only request and response header collections. |
![]() | OwinResponse(IDictionary<String^, Object^>^) | Creates a new environment wrapper exposing response properties. |
| Name | Description | |
|---|---|---|
![]() | Body | Gets or sets the owin.ResponseBody Stream. |
![]() | ContentLength | Gets or sets the Content-Length header. |
![]() | ContentType | Gets or sets the Content-Type header. |
![]() | Context | Gets the request context. |
![]() | Cookies | Gets a collection used to manipulate the Set-Cookie header. |
![]() | Environment | Gets the OWIN environment. |
![]() | ETag | Gets or sets the E-Tag header. |
![]() | Expires | Gets or sets the Expires header. |
![]() | Headers | Gets the response header collection. |
![]() | Protocol | Gets or sets the owin.ResponseProtocol. |
![]() | ReasonPhrase | Gets or sets the the optional owin.ResponseReasonPhrase. |
![]() | StatusCode | Gets or sets the optional owin.ResponseStatusCode. |
| 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.) |
![]() | OnSendingHeaders(Action<Object^>^, Object^) | Registers for an event that fires when the response headers are sent. |
![]() | Redirect(String^) | Sets a 302 response status code and the Location header. |
![]() | Set<T>(String^, T) | Sets the given key and value in the OWIN environment. |
![]() | ToString() | (Inherited from Object.) |
![]() | Write(array<Byte>^) | Writes the given bytes to the response body stream. |
![]() | Write(array<Byte>^, Int32, Int32) | Writes the given bytes to the response body stream. |
![]() | Write(String^) | Writes the given text to the response body stream using UTF-8. |
![]() | WriteAsync(array<Byte>^) | Asynchronously writes the given bytes to the response body stream. |
![]() | WriteAsync(array<Byte>^, CancellationToken) | Asynchronously writes the given bytes to the response body stream. |
![]() | WriteAsync(array<Byte>^, Int32, Int32, CancellationToken) | Asynchronously writes the given bytes to the response body stream. |
![]() | WriteAsync(String^) | Asynchronously writes the given text to the response body stream using UTF-8. |
![]() | WriteAsync(String^, CancellationToken) | Asynchronously writes the given text to the response body stream using UTF-8. |
| Name | Description | |
|---|---|---|
![]() | SendFileAsync(String^) | Overloaded. Sends the given file using the SendFile extension.(Defined by SendFileResponseExtensions.) |
![]() | SendFileAsync(String^, Int64, Nullable<Int64>, CancellationToken) | Overloaded. Sends the given file using the SendFile extension.(Defined by SendFileResponseExtensions.) |
![]() | SupportsSendFile() | Checks if the SendFile extension is supported.(Defined by SendFileResponseExtensions.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


