[This is preliminary documentation and is subject to change.]

Abstraction for an HTTP response, to be implemented by hosting.

Namespace: Simple.Web.HttpSimple.Web.HttpSimple::Web::Http
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public interface IResponse

VB

Public Interface IResponse

C++

public interface class IResponse

The IResponseIResponseIResponse type exposes the following members.

Properties

Name Description
HeadersHeadersHeaders The response headers.
StatusStatusStatus Gets or sets the status code and description.
WriteFunctionWriteFunctionWriteFunction Gets the output stream.
Top

Extension Methods

Name Description
AddHeader(IResponse, string, string)AddHeader(IResponse, String, String)AddHeader(IResponse^, String^, String^) Adds a response header. Current values for the specified header field are retained. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
DisableCache(IResponse)DisableCache(IResponse)DisableCache(IResponse^) Disables response caching by setting the Cache-Control header to "no-cache& no-store". (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
RemoveCookie(IResponse, string)RemoveCookie(IResponse, String)RemoveCookie(IResponse^, String^) Removes a cookie (by setting its Expiry one year in the past). (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
SetCacheOptions(IResponse, CacheOptions)SetCacheOptions(IResponse, CacheOptions)SetCacheOptions(IResponse^, CacheOptions^) Sets the Cache-Control header and optionally the Expires and Vary headers. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
SetContentType(IResponse, string)SetContentType(IResponse, String)SetContentType(IResponse^, String^) Sets the response Content-Type header. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
SetCookie(IResponse, string, string, int, bool, bool, string)SetCookie(IResponse, String, String, Integer, Boolean, Boolean, String)SetCookie(IResponse^, String^, String^, int, bool, bool, String^) Sets a cookie. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
SetETag(IResponse, string)SetETag(IResponse, String)SetETag(IResponse^, String^) Sets the ETag header. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
SetHeader(IResponse, string, string)SetHeader(IResponse, String, String)SetHeader(IResponse^, String^, String^) Sets a response header. Any current values for the specified header field are replaced. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
SetLastModified(IResponse, DateTime)SetLastModified(IResponse, DateTime)SetLastModified(IResponse^, DateTime) Sets the Last-Modified header. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
Write(IResponse, string)Write(IResponse, String)Write(IResponse^, String^) Writes text to the response body. (Defined by ResponseExtensionsResponseExtensionsResponseExtensions.)
Top

See Also

Simple.Web.HttpSimple.Web.HttpSimple::Web::Http Namespace