OwinResponse Class

Represents an OWIN response.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.OwinResponse

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

Syntax

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

The OwinResponse type exposes the following members.

Constructors

  Name Description
Public method OwinResponse() Initializes a new instance of the OwinResponse class.
Public method OwinResponse(IDictionary<String, Object>) Initializes a new instance of the OwinResponse class.

Top

Properties

  Name Description
Public property Body Gets or sets the body stream for the response.
Public property ContentLength Gets or sets the content returned by the request.
Public property ContentType Gets or sets the content type of the output stream.
Public property Context Gets or sets the IOwinContext.
Public property Cookies Gets the ResponseCookieCollection.
Public property Environment Gets the environment associated with the response.
Public property ETag Gets or sets an ETag that identifies a version of the file.
Public property Expires Gets or sets the duration before the response expires.
Public property Headers Gets a collection of headers.
Public property Protocol Gets or sets the information about a protocol.
Public property ReasonPhrase Gets or sets the reason phrase, which typically is sent by servers.
Public property StatusCode Gets or sets the OWIN status code of the output returned to the client.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Get<T> Gets the list of the OWIN response.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnSendingHeaders Adds the response headers.
Public method Redirect Redirects a response from the specified location.
Public method Set<T> Returns a new set with the elements of the second set removed from the first.
Public method ToString (Inherited from Object.)
Public method Write(array<Byte[]) Writes the date contained in the given array to the file.
Public method Write(String) Writes the date contained in the given array to the file.
Public method Write(array<Byte[], Int32, Int32) Writes the date contained in the given array to the file.
Public method WriteAsync(array<Byte[]) Writes information to a response asynchronously.
Public method WriteAsync(String) Writes information to a response asynchronously.
Public method WriteAsync(array<Byte[], CancellationToken) Writes information to a response asynchronously.
Public method WriteAsync(String, CancellationToken) Writes information to a response asynchronously.
Public method WriteAsync(array<Byte[], Int32, Int32, CancellationToken) Writes information to a response asynchronously.

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