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

Extension methods for the IResponseIResponseIResponse interface.

Inheritance Hierarchy

System.ObjectSystem.ObjectSystem::Object
  Simple.Web.Http.ResponseExtensionsSimple.Web.Http.ResponseExtensionsSimple::Web::Http::ResponseExtensions

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

Syntax

C#

public static class ResponseExtensions

VB

Public Class ResponseExtensions

C++

public ref class ResponseExtensions abstract sealed

The ResponseExtensionsResponseExtensionsResponseExtensions type exposes the following members.

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.
  DisableCache(IResponse)DisableCache(IResponse)DisableCache(IResponse^) Disables response caching by setting the Cache-Control header to "no-cache& no-store".
  RemoveCookie(IResponse, string)RemoveCookie(IResponse, String)RemoveCookie(IResponse^, String^) Removes a cookie (by setting its Expiry one year in the past).
  SetCacheOptions(IResponse, CacheOptions)SetCacheOptions(IResponse, CacheOptions)SetCacheOptions(IResponse^, CacheOptions^) Sets the Cache-Control header and optionally the Expires and Vary headers.
  SetContentType(IResponse, string)SetContentType(IResponse, String)SetContentType(IResponse^, String^) Sets the response Content-Type header.
  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.
  SetETag(IResponse, string)SetETag(IResponse, String)SetETag(IResponse^, String^) Sets the ETag header.
  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.
  SetLastModified(IResponse, DateTime)SetLastModified(IResponse, DateTime)SetLastModified(IResponse^, DateTime) Sets the Last-Modified header.
Top

See Also

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