HttpResponseWrapper Class
TOC
Collapse the table of content
Expand the table of content

HttpResponseWrapper Class

 

Encapsulates the HTTP intrinsic object that provides HTTP-response information from an ASP.NET operation.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.HttpResponseBase
    System.Web.HttpResponseWrapper

public class HttpResponseWrapper : HttpResponseBase

NameDescription
System_CAPS_pubmethodHttpResponseWrapper(HttpResponse)

Initializes a new instance of the HttpResponseWrapper class.

NameDescription
System_CAPS_pubpropertyBuffer

Gets or sets a value that indicates whether to buffer output and send it after the complete response has finished processing.(Overrides HttpResponseBase.Buffer.)

System_CAPS_pubpropertyBufferOutput

Gets or sets a value that indicates whether to buffer output and send it after the complete page has finished processing.(Overrides HttpResponseBase.BufferOutput.)

System_CAPS_pubpropertyCache

Gets the caching policy (such as expiration time, privacy settings, and vary clauses) of the current Web page.(Overrides HttpResponseBase.Cache.)

System_CAPS_pubpropertyCacheControl

Gets or sets the Cache-Control HTTP header that matches one of the HttpCacheability enumeration values.(Overrides HttpResponseBase.CacheControl.)

System_CAPS_pubpropertyCharset

Gets or sets the HTTP character set of the current response.(Overrides HttpResponseBase.Charset.)

System_CAPS_pubpropertyClientDisconnectedToken

Gets a CancellationToken object that is tripped when the client disconnects.(Overrides HttpResponseBase.ClientDisconnectedToken.)

System_CAPS_pubpropertyContentEncoding

Gets or sets the content encoding of the current response.(Overrides HttpResponseBase.ContentEncoding.)

System_CAPS_pubpropertyContentType

Gets or sets the HTTP MIME type of the current response.(Overrides HttpResponseBase.ContentType.)

System_CAPS_pubpropertyCookies

Gets the response cookie collection.(Overrides HttpResponseBase.Cookies.)

System_CAPS_pubpropertyExpires

Gets or sets the number of minutes before a page that is cached on the client or proxy expires. If the user returns to the same page before it expires, the cached version is displayed. Expires is provided for compatibility with earlier versions of ASP.(Overrides HttpResponseBase.Expires.)

System_CAPS_pubpropertyExpiresAbsolute

Gets or sets the absolute date and time at which cached information expires in the cache. ExpiresAbsolute is provided for compatibility with earlier versions of ASP.(Overrides HttpResponseBase.ExpiresAbsolute.)

System_CAPS_pubpropertyFilter

Gets or sets a filter object that is used to modify the HTTP entity body before transmission.(Overrides HttpResponseBase.Filter.)

System_CAPS_pubpropertyHeaderEncoding

Gets or sets the encoding for the header of the current response.(Overrides HttpResponseBase.HeaderEncoding.)

System_CAPS_pubpropertyHeaders

Gets the collection of response headers.(Overrides HttpResponseBase.Headers.)

System_CAPS_pubpropertyHeadersWritten

Gets a value indicating whether the response headers have been written.(Overrides HttpResponseBase.HeadersWritten.)

System_CAPS_pubpropertyIsClientConnected

Gets a value that indicates whether the client is connected to the server.(Overrides HttpResponseBase.IsClientConnected.)

System_CAPS_pubpropertyIsRequestBeingRedirected

Gets a value that indicates whether the client is being redirected to a new location.(Overrides HttpResponseBase.IsRequestBeingRedirected.)

System_CAPS_pubpropertyOutput

Gets the object that enables output of text to the outgoing HTTP response stream.(Overrides HttpResponseBase.Output.)

System_CAPS_pubpropertyOutputStream

Provides binary output to the outgoing HTTP content body.(Overrides HttpResponseBase.OutputStream.)

System_CAPS_pubpropertyRedirectLocation

Gets or sets the value of the HTTP Location header.(Overrides HttpResponseBase.RedirectLocation.)

System_CAPS_pubpropertyStatus

Sets the Status value that is returned to the client.(Overrides HttpResponseBase.Status.)

System_CAPS_pubpropertyStatusCode

Gets or sets the HTTP status code of the output that is returned to the client.(Overrides HttpResponseBase.StatusCode.)

System_CAPS_pubpropertyStatusDescription

Gets or sets the HTTP status message of the output that is returned to the client.(Overrides HttpResponseBase.StatusDescription.)

System_CAPS_pubpropertySubStatusCode

Gets or sets a value that qualifies the status code of the response.(Overrides HttpResponseBase.SubStatusCode.)

System_CAPS_pubpropertySupportsAsyncFlush

Gets a value that indicates whether the connection supports asynchronous flush operations.(Overrides HttpResponseBase.SupportsAsyncFlush.)

System_CAPS_pubpropertySuppressContent

Gets or sets a value that indicates whether to send HTTP content to the client.(Overrides HttpResponseBase.SuppressContent.)

System_CAPS_pubpropertySuppressDefaultCacheControlHeader

Gets or sets a value indicating whether to suppress the default Cache Control: private header for the current HTTP response.(Overrides HttpResponseBase.SuppressDefaultCacheControlHeader.)

System_CAPS_pubpropertySuppressFormsAuthenticationRedirect

Gets or sets a value that specifies whether forms authentication redirection to the login page should be suppressed.(Overrides HttpResponseBase.SuppressFormsAuthenticationRedirect.)

System_CAPS_pubpropertyTrySkipIisCustomErrors

Gets or sets a value that specifies whether IIS 7.0 custom errors are disabled.(Overrides HttpResponseBase.TrySkipIisCustomErrors.)

NameDescription
System_CAPS_pubmethodAddCacheDependency(CacheDependency[])

When overridden in a derived class, associates cache dependencies with the response that enable the response to be invalidated if it is cached and if the specified dependencies change.(Overrides HttpResponseBase.AddCacheDependency(CacheDependency[]).)

System_CAPS_pubmethodAddCacheItemDependencies(ArrayList)

Makes the validity of a cached response dependent on the specified items in the cache.(Overrides HttpResponseBase.AddCacheItemDependencies(ArrayList).)

System_CAPS_pubmethodAddCacheItemDependencies(String[])

Makes the validity of a cached item dependent on the specified items in the cache.(Overrides HttpResponseBase.AddCacheItemDependencies(String[]).)

System_CAPS_pubmethodAddCacheItemDependency(String)

Makes the validity of a cached response dependent on the specified item in the cache.(Overrides HttpResponseBase.AddCacheItemDependency(String).)

System_CAPS_pubmethodAddFileDependencies(ArrayList)

Adds file names to the collection of file names on which the current response is dependent.(Overrides HttpResponseBase.AddFileDependencies(ArrayList).)

System_CAPS_pubmethodAddFileDependencies(String[])

Adds an array of file names to the collection of file names on which the current response is dependent.(Overrides HttpResponseBase.AddFileDependencies(String[]).)

System_CAPS_pubmethodAddFileDependency(String)

Adds a single file name to the collection of file names on which the current response is dependent.(Overrides HttpResponseBase.AddFileDependency(String).)

System_CAPS_pubmethodAddHeader(String, String)

Adds an HTTP header to the current response. This method is provided for compatibility with earlier versions of ASP.(Overrides HttpResponseBase.AddHeader(String, String).)

System_CAPS_pubmethodAddOnSendingHeaders(Action<HttpContextBase>)

Registers a callback that the ASP.NET runtime will invoke immediately before response headers are sent for this request.(Overrides HttpResponseBase.AddOnSendingHeaders(Action<HttpContextBase>).)

System_CAPS_pubmethodAppendCookie(HttpCookie)

Adds an HTTP cookie to the HTTP response cookie collection.(Overrides HttpResponseBase.AppendCookie(HttpCookie).)

System_CAPS_pubmethodAppendHeader(String, String)

Adds an HTTP header to the current response.(Overrides HttpResponseBase.AppendHeader(String, String).)

System_CAPS_pubmethodAppendToLog(String)

Adds custom log information to the Internet Information Services (IIS) log file.(Overrides HttpResponseBase.AppendToLog(String).)

System_CAPS_pubmethodApplyAppPathModifier(String)

Adds a session ID to the virtual path if the session is using Cookieless session state, and returns the combined path. (Overrides HttpResponseBase.ApplyAppPathModifier(String).)

System_CAPS_pubmethodBeginFlush(AsyncCallback, Object)
System_CAPS_pubmethodBinaryWrite(Byte[])

Writes a string of binary characters to the HTTP output stream.(Overrides HttpResponseBase.BinaryWrite(Byte[]).)

System_CAPS_pubmethodClear()

Clears all headers and content output from the current response.(Overrides HttpResponseBase.Clear().)

System_CAPS_pubmethodClearContent()

Clears all content output from the current response.(Overrides HttpResponseBase.ClearContent().)

System_CAPS_pubmethodClearHeaders()

Clears all headers from the current response.(Overrides HttpResponseBase.ClearHeaders().)

System_CAPS_pubmethodClose()

Closes the socket connection to a client.(Overrides HttpResponseBase.Close().)

System_CAPS_pubmethodDisableKernelCache()

Disables kernel caching for the current response.(Overrides HttpResponseBase.DisableKernelCache().)

System_CAPS_pubmethodDisableUserCache()

Disables IIS user-mode caching for this response.(Overrides HttpResponseBase.DisableUserCache().)

System_CAPS_pubmethodEnd()

Sends all currently buffered output to the client, stops execution of the requested process, and raises the EndRequest event.(Overrides HttpResponseBase.End().)

System_CAPS_pubmethodEndFlush(IAsyncResult)

Completes an asynchronous flush operation.(Overrides HttpResponseBase.EndFlush(IAsyncResult).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFlush()

Sends all currently buffered output to the client.(Overrides HttpResponseBase.Flush().)

System_CAPS_pubmethodFlushAsync()

Asynchronously sends all currently buffered output to the client.(Overrides HttpResponseBase.FlushAsync().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodPics(String)

Appends an HTTP PICS-Label header to the current response.(Overrides HttpResponseBase.Pics(String).)

System_CAPS_pubmethodPushPromise(String)

This API is to support applications sending push promises to HTTP 2.0 clients. You can find more details regarding to Http2 server push at HTTP/2 Specification Section 8.2: Server Push.(Overrides HttpResponseBase.PushPromise(String).)

System_CAPS_pubmethodPushPromise(String, String, NameValueCollection)

This API is to support applications sending push promises to HTTP 2.0 clients. You can find more details regarding to Http2 server push at HTTP/2 Specification Section 8.2: Server Push.(Overrides HttpResponseBase.PushPromise(String, String, NameValueCollection).)

System_CAPS_pubmethodRedirect(String)

Redirects a request to the specified URL.(Overrides HttpResponseBase.Redirect(String).)

System_CAPS_pubmethodRedirect(String, Boolean)

Redirects a request to the specified URL and specifies whether execution of the current process should terminate.(Overrides HttpResponseBase.Redirect(String, Boolean).)

System_CAPS_pubmethodRedirectPermanent(String)

Performs a permanent redirect from the requested URL to the specified URL.(Overrides HttpResponseBase.RedirectPermanent(String).)

System_CAPS_pubmethodRedirectPermanent(String, Boolean)

Performs a permanent redirect from the requested URL to the specified URL, and provides the option to complete the response.(Overrides HttpResponseBase.RedirectPermanent(String, Boolean).)

System_CAPS_pubmethodRedirectToRoute(Object)

Redirects a request to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoute(Object).)

System_CAPS_pubmethodRedirectToRoute(RouteValueDictionary)

Redirects a request to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoute(RouteValueDictionary).)

System_CAPS_pubmethodRedirectToRoute(String)

Redirects a request to a new URL by using the specified route name.(Overrides HttpResponseBase.RedirectToRoute(String).)

System_CAPS_pubmethodRedirectToRoute(String, Object)

Redirects a request to a new URL by using the specified route name and route parameter values.(Overrides HttpResponseBase.RedirectToRoute(String, Object).)

System_CAPS_pubmethodRedirectToRoute(String, RouteValueDictionary)

Redirects a request to a new URL by using the specified route name and route parameter values.(Overrides HttpResponseBase.RedirectToRoute(String, RouteValueDictionary).)

System_CAPS_pubmethodRedirectToRoutePermanent(Object)

Performs a permanent redirection from a requested URL to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoutePermanent(Object).)

System_CAPS_pubmethodRedirectToRoutePermanent(RouteValueDictionary)

Performs a permanent redirection from a requested URL to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoutePermanent(RouteValueDictionary).)

System_CAPS_pubmethodRedirectToRoutePermanent(String)

Performs a permanent redirection from a requested URL to a new URL by using the specified route name.(Overrides HttpResponseBase.RedirectToRoutePermanent(String).)

System_CAPS_pubmethodRedirectToRoutePermanent(String, Object)

Performs a permanent redirection from a requested URL to a new URL by using a route name and route parameter values that correspond to the new URL.(Overrides HttpResponseBase.RedirectToRoutePermanent(String, Object).)

System_CAPS_pubmethodRedirectToRoutePermanent(String, RouteValueDictionary)

Performs a permanent redirection from a requested URL to a new URL by using the specified route name and route parameter values.(Overrides HttpResponseBase.RedirectToRoutePermanent(String, RouteValueDictionary).)

System_CAPS_pubmethodRemoveOutputCacheItem(String)

Removes from the cache all cached items that are associated with the specified path.(Overrides HttpResponseBase.RemoveOutputCacheItem(String).)

System_CAPS_pubmethodRemoveOutputCacheItem(String, String)

Uses the specified output-cache provider to remove all output-cache artifacts that are associated with the specified path.(Overrides HttpResponseBase.RemoveOutputCacheItem(String, String).)

System_CAPS_pubmethodSetCookie(HttpCookie)

Updates an existing cookie in the cookie collection.(Overrides HttpResponseBase.SetCookie(HttpCookie).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTransmitFile(String)

Writes the specified file to the HTTP response output stream, without buffering it in memory.(Overrides HttpResponseBase.TransmitFile(String).)

System_CAPS_pubmethodTransmitFile(String, Int64, Int64)

Writes the specified part of a file to the HTTP response output stream, without buffering it in memory.(Overrides HttpResponseBase.TransmitFile(String, Int64, Int64).)

System_CAPS_pubmethodWrite(Char)

Writes a character to an HTTP response output stream.(Overrides HttpResponseBase.Write(Char).)

System_CAPS_pubmethodWrite(Char[], Int32, Int32)

Writes the specified array of characters to the HTTP response output stream.(Overrides HttpResponseBase.Write(Char[], Int32, Int32).)

System_CAPS_pubmethodWrite(Object)

Writes the specified object to the HTTP response stream.(Overrides HttpResponseBase.Write(Object).)

System_CAPS_pubmethodWrite(String)

Writes the specified string to the HTTP response output stream.(Overrides HttpResponseBase.Write(String).)

System_CAPS_pubmethodWriteFile(IntPtr, Int64, Int64)

Writes the specified file to the HTTP response output stream.(Overrides HttpResponseBase.WriteFile(IntPtr, Int64, Int64).)

System_CAPS_pubmethodWriteFile(String)

Writes the contents of the specified file to the HTTP response output stream as a file block.(Overrides HttpResponseBase.WriteFile(String).)

System_CAPS_pubmethodWriteFile(String, Boolean)

Writes the contents of the specified file to the HTTP response output stream and specifies whether the content is written as a memory block.(Overrides HttpResponseBase.WriteFile(String, Boolean).)

System_CAPS_pubmethodWriteFile(String, Int64, Int64)

Writes the specified file to the HTTP response output stream.(Overrides HttpResponseBase.WriteFile(String, Int64, Int64).)

System_CAPS_pubmethodWriteSubstitution(HttpResponseSubstitutionCallback)

Inserts substitution blocks into the response, which enables dynamic generation of regions for cached output responses.(Overrides HttpResponseBase.WriteSubstitution(HttpResponseSubstitutionCallback).)

The HttpResponseWrapper class derives from the HttpResponseBase class and serves as a wrapper for the HttpResponse class. This class exposes the functionality of the HttpResponse class while also exposing the HttpResponseBase type. The HttpResponseBase class enables you to replace the original implementation of the HttpResponse class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft