Udostępnij za pośrednictwem


IOwinResponse Interface

 

This wraps OWIN environment dictionary and provides strongly typed accessors.

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

Syntax

public interface IOwinResponse
public interface class IOwinResponse
type IOwinResponse = interface end
Public Interface IOwinResponse

Properties

Name Description
System_CAPS_pubproperty Body

Gets or sets the owin.ResponseBody Stream.

System_CAPS_pubproperty ContentLength

Gets or sets the Content-Length header.

System_CAPS_pubproperty ContentType

Gets or sets the Content-Type header.

System_CAPS_pubproperty Context

Gets the request context.

System_CAPS_pubproperty Cookies

Gets a collection used to manipulate the Set-Cookie header.

System_CAPS_pubproperty Environment

Gets the OWIN environment.

System_CAPS_pubproperty ETag

Gets or sets the E-Tag header.

System_CAPS_pubproperty Expires

Gets or sets the Expires header.

System_CAPS_pubproperty Headers

Gets the response header collection.

System_CAPS_pubproperty Protocol

Gets or sets the owin.ResponseProtocol.

System_CAPS_pubproperty ReasonPhrase

Gets or sets the the optional owin.ResponseReasonPhrase.

System_CAPS_pubproperty StatusCode

Gets or sets the optional owin.ResponseStatusCode.

Methods

Name Description
System_CAPS_pubmethod Get<T>(String)

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

System_CAPS_pubmethod OnSendingHeaders(Action<Object>, Object)

Registers for an event that fires when the response headers are sent.

System_CAPS_pubmethod Redirect(String)

Sets a 302 response status code and the Location header.

System_CAPS_pubmethod Set<T>(String, T)

Sets the given key and value in the OWIN environment.

System_CAPS_pubmethod Write(Byte[])

Writes the given bytes to the response body stream.

System_CAPS_pubmethod Write(Byte[], Int32, Int32)

Writes the given bytes to the response body stream.

System_CAPS_pubmethod Write(String)

Writes the given text to the response body stream using UTF-8.

System_CAPS_pubmethod WriteAsync(Byte[])

Asynchronously writes the given bytes to the response body stream.

System_CAPS_pubmethod WriteAsync(Byte[], CancellationToken)

Asynchronously writes the given bytes to the response body stream.

System_CAPS_pubmethod WriteAsync(Byte[], Int32, Int32, CancellationToken)

Asynchronously writes the given bytes to the response body stream.

System_CAPS_pubmethod WriteAsync(String)

Asynchronously writes the given text to the response body stream using UTF-8.

System_CAPS_pubmethod WriteAsync(String, CancellationToken)

Asynchronously writes the given text to the response body stream using UTF-8.

Extension Methods

Name Description
System_CAPS_pubmethod SendFileAsync(String)

Overloaded. Sends the given file using the SendFile extension.(Defined by SendFileResponseExtensions.)

System_CAPS_pubmethod SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)

Overloaded. Sends the given file using the SendFile extension.(Defined by SendFileResponseExtensions.)

System_CAPS_pubmethod SupportsSendFile()

Checks if the SendFile extension is supported.(Defined by SendFileResponseExtensions.)

See Also

Microsoft.Owin Namespace

Return to top