HttpResponseWrapper Class
Encapsulates the HTTP intrinsic object that provides HTTP-response information from an ASP.NET operation.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | HttpResponseWrapper(HttpResponse) | Initializes a new instance of the HttpResponseWrapper class. |
| Name | Description | |
|---|---|---|
![]() | Buffer | Gets or sets a value that indicates whether to buffer output and send it after the complete response has finished processing.(Overrides HttpResponseBase.Buffer.) |
![]() | BufferOutput | Gets or sets a value that indicates whether to buffer output and send it after the complete page has finished processing.(Overrides HttpResponseBase.BufferOutput.) |
![]() | Cache | Gets the caching policy (such as expiration time, privacy settings, and vary clauses) of the current Web page.(Overrides HttpResponseBase.Cache.) |
![]() | CacheControl | Gets or sets the Cache-Control HTTP header that matches one of the HttpCacheability enumeration values.(Overrides HttpResponseBase.CacheControl.) |
![]() | Charset | Gets or sets the HTTP character set of the current response.(Overrides HttpResponseBase.Charset.) |
![]() | ClientDisconnectedToken | Gets a CancellationToken object that is tripped when the client disconnects.(Overrides HttpResponseBase.ClientDisconnectedToken.) |
![]() | ContentEncoding | Gets or sets the content encoding of the current response.(Overrides HttpResponseBase.ContentEncoding.) |
![]() | ContentType | Gets or sets the HTTP MIME type of the current response.(Overrides HttpResponseBase.ContentType.) |
![]() | Cookies | Gets the response cookie collection.(Overrides HttpResponseBase.Cookies.) |
![]() | Expires | 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.) |
![]() | ExpiresAbsolute | 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.) |
![]() | Filter | Gets or sets a filter object that is used to modify the HTTP entity body before transmission.(Overrides HttpResponseBase.Filter.) |
![]() | HeaderEncoding | Gets or sets the encoding for the header of the current response.(Overrides HttpResponseBase.HeaderEncoding.) |
![]() | Headers | Gets the collection of response headers.(Overrides HttpResponseBase.Headers.) |
![]() | HeadersWritten | Gets a value indicating whether the response headers have been written.(Overrides HttpResponseBase.HeadersWritten.) |
![]() | IsClientConnected | Gets a value that indicates whether the client is connected to the server.(Overrides HttpResponseBase.IsClientConnected.) |
![]() | IsRequestBeingRedirected | Gets a value that indicates whether the client is being redirected to a new location.(Overrides HttpResponseBase.IsRequestBeingRedirected.) |
![]() | Output | Gets the object that enables output of text to the outgoing HTTP response stream.(Overrides HttpResponseBase.Output.) |
![]() | OutputStream | Provides binary output to the outgoing HTTP content body.(Overrides HttpResponseBase.OutputStream.) |
![]() | RedirectLocation | Gets or sets the value of the HTTP Location header.(Overrides HttpResponseBase.RedirectLocation.) |
![]() | Status | Sets the Status value that is returned to the client.(Overrides HttpResponseBase.Status.) |
![]() | StatusCode | Gets or sets the HTTP status code of the output that is returned to the client.(Overrides HttpResponseBase.StatusCode.) |
![]() | StatusDescription | Gets or sets the HTTP status message of the output that is returned to the client.(Overrides HttpResponseBase.StatusDescription.) |
![]() | SubStatusCode | Gets or sets a value that qualifies the status code of the response.(Overrides HttpResponseBase.SubStatusCode.) |
![]() | SupportsAsyncFlush | Gets a value that indicates whether the connection supports asynchronous flush operations.(Overrides HttpResponseBase.SupportsAsyncFlush.) |
![]() | SuppressContent | Gets or sets a value that indicates whether to send HTTP content to the client.(Overrides HttpResponseBase.SuppressContent.) |
![]() | SuppressDefaultCacheControlHeader | Gets or sets a value indicating whether to suppress the default Cache Control: private header for the current HTTP response.(Overrides HttpResponseBase.SuppressDefaultCacheControlHeader.) |
![]() | SuppressFormsAuthenticationRedirect | Gets or sets a value that specifies whether forms authentication redirection to the login page should be suppressed.(Overrides HttpResponseBase.SuppressFormsAuthenticationRedirect.) |
![]() | TrySkipIisCustomErrors | Gets or sets a value that specifies whether IIS 7.0 custom errors are disabled.(Overrides HttpResponseBase.TrySkipIisCustomErrors.) |
| Name | Description | |
|---|---|---|
![]() | AddCacheDependency(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[]).) |
![]() | AddCacheItemDependencies(ArrayList) | Makes the validity of a cached response dependent on the specified items in the cache.(Overrides HttpResponseBase.AddCacheItemDependencies(ArrayList).) |
![]() | AddCacheItemDependencies(String[]) | Makes the validity of a cached item dependent on the specified items in the cache.(Overrides HttpResponseBase.AddCacheItemDependencies(String[]).) |
![]() | AddCacheItemDependency(String) | Makes the validity of a cached response dependent on the specified item in the cache.(Overrides HttpResponseBase.AddCacheItemDependency(String).) |
![]() | AddFileDependencies(ArrayList) | Adds file names to the collection of file names on which the current response is dependent.(Overrides HttpResponseBase.AddFileDependencies(ArrayList).) |
![]() | AddFileDependencies(String[]) | Adds an array of file names to the collection of file names on which the current response is dependent.(Overrides HttpResponseBase.AddFileDependencies(String[]).) |
![]() | AddFileDependency(String) | Adds a single file name to the collection of file names on which the current response is dependent.(Overrides HttpResponseBase.AddFileDependency(String).) |
![]() | AddHeader(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).) |
![]() | AddOnSendingHeaders(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>).) |
![]() | AppendCookie(HttpCookie) | Adds an HTTP cookie to the HTTP response cookie collection.(Overrides HttpResponseBase.AppendCookie(HttpCookie).) |
![]() | AppendHeader(String, String) | Adds an HTTP header to the current response.(Overrides HttpResponseBase.AppendHeader(String, String).) |
![]() | AppendToLog(String) | Adds custom log information to the Internet Information Services (IIS) log file.(Overrides HttpResponseBase.AppendToLog(String).) |
![]() | ApplyAppPathModifier(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).) |
![]() | BeginFlush(AsyncCallback, Object) | (Overrides HttpResponseBase.BeginFlush(AsyncCallback, Object).) |
![]() | BinaryWrite(Byte[]) | Writes a string of binary characters to the HTTP output stream.(Overrides HttpResponseBase.BinaryWrite(Byte[]).) |
![]() | Clear() | Clears all headers and content output from the current response.(Overrides HttpResponseBase.Clear().) |
![]() | ClearContent() | Clears all content output from the current response.(Overrides HttpResponseBase.ClearContent().) |
![]() | ClearHeaders() | Clears all headers from the current response.(Overrides HttpResponseBase.ClearHeaders().) |
![]() | Close() | Closes the socket connection to a client.(Overrides HttpResponseBase.Close().) |
![]() | DisableKernelCache() | Disables kernel caching for the current response.(Overrides HttpResponseBase.DisableKernelCache().) |
![]() | DisableUserCache() | Disables IIS user-mode caching for this response.(Overrides HttpResponseBase.DisableUserCache().) |
![]() | End() | Sends all currently buffered output to the client, stops execution of the requested process, and raises the EndRequest event.(Overrides HttpResponseBase.End().) |
![]() | EndFlush(IAsyncResult) | Completes an asynchronous flush operation.(Overrides HttpResponseBase.EndFlush(IAsyncResult).) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | Flush() | Sends all currently buffered output to the client.(Overrides HttpResponseBase.Flush().) |
![]() | FlushAsync() | Asynchronously sends all currently buffered output to the client.(Overrides HttpResponseBase.FlushAsync().) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | Pics(String) | Appends an HTTP PICS-Label header to the current response.(Overrides HttpResponseBase.Pics(String).) |
![]() | PushPromise(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).) |
![]() | PushPromise(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).) |
![]() | Redirect(String) | Redirects a request to the specified URL.(Overrides HttpResponseBase.Redirect(String).) |
![]() | Redirect(String, Boolean) | Redirects a request to the specified URL and specifies whether execution of the current process should terminate.(Overrides HttpResponseBase.Redirect(String, Boolean).) |
![]() | RedirectPermanent(String) | Performs a permanent redirect from the requested URL to the specified URL.(Overrides HttpResponseBase.RedirectPermanent(String).) |
![]() | RedirectPermanent(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).) |
![]() | RedirectToRoute(Object) | Redirects a request to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoute(Object).) |
![]() | RedirectToRoute(RouteValueDictionary) | Redirects a request to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoute(RouteValueDictionary).) |
![]() | RedirectToRoute(String) | Redirects a request to a new URL by using the specified route name.(Overrides HttpResponseBase.RedirectToRoute(String).) |
![]() | RedirectToRoute(String, Object) | Redirects a request to a new URL by using the specified route name and route parameter values.(Overrides HttpResponseBase.RedirectToRoute(String, Object).) |
![]() | RedirectToRoute(String, RouteValueDictionary) | Redirects a request to a new URL by using the specified route name and route parameter values.(Overrides HttpResponseBase.RedirectToRoute(String, RouteValueDictionary).) |
![]() | RedirectToRoutePermanent(Object) | Performs a permanent redirection from a requested URL to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoutePermanent(Object).) |
![]() | RedirectToRoutePermanent(RouteValueDictionary) | Performs a permanent redirection from a requested URL to a new URL by using the specified route parameter values.(Overrides HttpResponseBase.RedirectToRoutePermanent(RouteValueDictionary).) |
![]() | RedirectToRoutePermanent(String) | Performs a permanent redirection from a requested URL to a new URL by using the specified route name.(Overrides HttpResponseBase.RedirectToRoutePermanent(String).) |
![]() | RedirectToRoutePermanent(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).) |
![]() | RedirectToRoutePermanent(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).) |
![]() | RemoveOutputCacheItem(String) | Removes from the cache all cached items that are associated with the specified path.(Overrides HttpResponseBase.RemoveOutputCacheItem(String).) |
![]() | RemoveOutputCacheItem(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).) |
![]() | SetCookie(HttpCookie) | Updates an existing cookie in the cookie collection.(Overrides HttpResponseBase.SetCookie(HttpCookie).) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | TransmitFile(String) | Writes the specified file to the HTTP response output stream, without buffering it in memory.(Overrides HttpResponseBase.TransmitFile(String).) |
![]() | TransmitFile(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).) |
![]() | Write(Char) | Writes a character to an HTTP response output stream.(Overrides HttpResponseBase.Write(Char).) |
![]() | Write(Char[], Int32, Int32) | Writes the specified array of characters to the HTTP response output stream.(Overrides HttpResponseBase.Write(Char[], Int32, Int32).) |
![]() | Write(Object) | Writes the specified object to the HTTP response stream.(Overrides HttpResponseBase.Write(Object).) |
![]() | Write(String) | Writes the specified string to the HTTP response output stream.(Overrides HttpResponseBase.Write(String).) |
![]() | WriteFile(IntPtr, Int64, Int64) | Writes the specified file to the HTTP response output stream.(Overrides HttpResponseBase.WriteFile(IntPtr, Int64, Int64).) |
![]() | WriteFile(String) | Writes the contents of the specified file to the HTTP response output stream as a file block.(Overrides HttpResponseBase.WriteFile(String).) |
![]() | WriteFile(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).) |
![]() | WriteFile(String, Int64, Int64) | Writes the specified file to the HTTP response output stream.(Overrides HttpResponseBase.WriteFile(String, Int64, Int64).) |
![]() | WriteSubstitution(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.
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.


