HttpResponseBase Class
Serves as the base class for classes that provides HTTP-response information from an ASP.NET operation.
Assembly: System.Web (in System.Web.dll)
The HttpResponseBase type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | HttpResponseBase | Initializes the class for use by an inherited class instance. This constructor can only be called by an inherited class. |
| Name | Description | |
|---|---|---|
![]() | Buffer | When overridden in a derived class, gets or sets a value that indicates whether to buffer output and send it after the complete response has finished processing. |
![]() | BufferOutput | When overridden in a derived class, gets or sets a value that indicates whether to buffer output and send it after the complete page has finished processing. |
![]() | Cache | When overridden in a derived class, gets the caching policy (such as expiration time, privacy settings, and vary clauses) of the current Web page. |
![]() | CacheControl | When overridden in a derived class, gets or sets the Cache-Control HTTP header that matches one of the HttpCacheability enumeration values. |
![]() | Charset | When overridden in a derived class, gets or sets the HTTP character set of the current response. |
![]() | ContentEncoding | When overridden in a derived class, gets or sets the content encoding of the current response. |
![]() | ContentType | When overridden in a derived class, gets or sets the HTTP MIME type of the current response. |
![]() | Cookies | When overridden in a derived class, gets the response cookie collection. |
![]() | Expires | When overridden in a derived class, 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 Active Server Pages (ASP). |
![]() | ExpiresAbsolute | When overridden in a derived class, 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 Active Server Pages (ASP). |
![]() | Filter | When overridden in a derived class, gets or sets a filter object that is used to modify the HTTP entity body before transmission. |
![]() | HeaderEncoding | When overridden in a derived class, gets or sets the encoding for the header of the current response. |
![]() | Headers | When overridden in a derived class, gets the collection of response headers. |
![]() | IsClientConnected | When overridden in a derived class, gets a value that indicates whether the client is connected to the server. |
![]() | IsRequestBeingRedirected | When overridden in a derived class, gets a value that indicates whether the client is being redirected to a new location. |
![]() | Output | When overridden in a derived class, gets the object that enables text output to the HTTP response stream. |
![]() | OutputStream | When overridden in a derived class, enables binary output to the outgoing HTTP content body. |
![]() | RedirectLocation | When overridden in a derived class, gets or sets the value of the HTTP Location header. |
![]() | Status | When overridden in a derived class, gets or sets the Status value that is returned to the client. |
![]() | StatusCode | When overridden in a derived class, gets or sets the HTTP status code of the output that is returned to the client. |
![]() | StatusDescription | When overridden in a derived class, gets or sets the HTTP status message of the output that is returned to the client. |
![]() | SubStatusCode | When overridden in a derived class, gets or sets a value that qualifies the status code of the response. |
![]() | SuppressContent | When overridden in a derived class, gets or sets a value that indicates whether to send HTTP content to the client. |
![]() | TrySkipIisCustomErrors | When overridden in a derived class, gets or sets a value that specifies whether IIS 7.0 custom errors are disabled. |
| Name | Description | |
|---|---|---|
![]() | AddCacheDependency | 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. |
![]() | AddCacheItemDependencies(ArrayList) | When overridden in a derived class, makes the validity of a cached response dependent on the specified items in the cache. |
![]() | AddCacheItemDependencies(array<String>) | When overridden in a derived class, makes the validity of a cached item dependent on the specified items in the cache. |
![]() | AddCacheItemDependency | When overridden in a derived class, makes the validity of a cached response dependent on the specified item in the cache. |
![]() | AddFileDependencies(ArrayList) | When overridden in a derived class, adds file names to the collection of file names on which the current response is dependent. |
![]() | AddFileDependencies(array<String>) | When overridden in a derived class, adds an array of file names to the collection of file names on which the current response is dependent. |
![]() | AddFileDependency | When overridden in a derived class, adds a single file name to the collection of file names on which the current response is dependent. |
![]() | AddHeader | When overridden in a derived class, adds an HTTP header to the current response. This method is provided for compatibility with earlier versions of ASP. |
![]() | AppendCookie | When overridden in a derived class, adds an HTTP cookie to the HTTP response cookie collection. |
![]() | AppendHeader | When overridden in a derived class, adds an HTTP header to the current response. |
![]() | AppendToLog | When overridden in a derived class, adds custom log information to the Internet Information Services (IIS) log file. |
![]() | ApplyAppPathModifier | When overridden in a derived class, adds a session ID to the virtual path if the session is using Cookieless session state, and returns the combined path. |
![]() | BinaryWrite | When overridden in a derived class, writes a string of binary characters to the HTTP output stream. |
![]() | Clear | When overridden in a derived class, clears all headers and content output from the current response. |
![]() | ClearContent | When overridden in a derived class, clears all content from the current response. |
![]() | ClearHeaders | When overridden in a derived class, clears all headers from the current response. |
![]() | Close | When overridden in a derived class, closes the socket connection to a client. |
![]() | DisableKernelCache | When overridden in a derived class, disables kernel caching for the current response. |
![]() | End | When overridden in a derived class, sends all currently buffered output to the client, stops execution of the requested process, and raises the EndRequest event. |
![]() | 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 | When overridden in a derived class, sends all currently buffered output to the client. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Pics | When overridden in a derived class, appends an HTTP PICS-Label header to the current response. |
![]() | Redirect(String) | When overridden in a derived class, redirects a request to the specified URL. |
![]() | Redirect(String, Boolean) | When overridden in a derived class, redirects a request to the specified URL and specifies whether execution of the current process should terminate. |
![]() | RedirectPermanent(String) | When overridden in a derived class, performs a permanent redirect from the requested URL to the specified URL. |
![]() | RedirectPermanent(String, Boolean) | When overridden in a derived class, performs a permanent redirect from the requested URL to the specified URL, and provides the option to complete the response. |
![]() | RedirectToRoute(Object) | When overridden in a derived class, redirects the request to a new URL by using route parameter values. |
![]() | RedirectToRoute(RouteValueDictionary) | When overridden in a derived class, redirects the request to a new URL by using route parameter values. |
![]() | RedirectToRoute(String) | When overridden in a derived class, redirects the request to a new URL by using a route name. |
![]() | RedirectToRoute(String, Object) | When overridden in a derived class, redirects the request to a new URL by using route parameter values and a route name. |
![]() | RedirectToRoute(String, RouteValueDictionary) | When overridden in a derived class, redirects the request to a new URL by using route parameter values and a route name. |
![]() | RedirectToRoutePermanent(Object) | When overridden in a derived class, performs a permanent redirection from the requested URL to a new URL by using route parameter values. |
![]() | RedirectToRoutePermanent(RouteValueDictionary) | When overridden in a derived class, performs a permanent redirection from the requested URL to a new URL by using route parameter values. |
![]() | RedirectToRoutePermanent(String) | When overridden in a derived class, performs a permanent redirection from the requested URL to a new URL by using a route name. |
![]() | RedirectToRoutePermanent(String, Object) | When overridden in a derived class, performs a permanent redirection from the requested URL to a new URL by using the route parameter values and the name of the route that correspond to the new URL. |
![]() | RedirectToRoutePermanent(String, RouteValueDictionary) | When overridden in a derived class, performs a permanent redirection from the requested URL to a new URL by using route parameter values and a route name. |
![]() | RemoveOutputCacheItem(String) | When overridden in a derived class, removes from the cache all cached items that are associated with the specified path. |
![]() | RemoveOutputCacheItem(String, String) | When overridden in a derived class, uses the specified output-cache provider to remove all output-cache artifacts that are associated with the specified path. |
![]() | SetCookie | When overridden in a derived class, updates an existing cookie in the cookie collection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TransmitFile(String) | When overridden in a derived class, writes the specified file to the HTTP response output stream, without buffering it in memory. |
![]() | TransmitFile(String, Int64, Int64) | When overridden in a derived class, writes the specified part of a file to the HTTP response output stream, without buffering it in memory. |
![]() | Write(Char) | When overridden in a derived class, writes a character to an HTTP response output stream. |
![]() | Write(Object) | When overridden in a derived class, writes the specified object to the HTTP response stream. |
![]() | Write(String) | When overridden in a derived class, writes the specified string to the HTTP response output stream. |
![]() | Write(array<Char>, Int32, Int32) | When overridden in a derived class, writes the specified array of characters to the HTTP response output stream. |
![]() | WriteFile(String) | When overridden in a derived class, writes the contents of the specified file to the HTTP response output stream as a file block. |
![]() | WriteFile(String, Boolean) | When overridden in a derived class, writes the contents of the specified file to the HTTP response output stream and specifies whether the content is written as a memory block. |
![]() | WriteFile(IntPtr, Int64, Int64) | When overridden in a derived class, writes the specified file to the HTTP response output stream. |
![]() | WriteFile(String, Int64, Int64) | When overridden in a derived class, writes the specified file to the HTTP response output stream. |
![]() | WriteSubstitution | When overridden in a derived class, inserts substitution blocks into the response, which enables dynamic generation of regions for cached output responses. |
The HttpResponseBase class is an abstract class that contains the same members as the HttpResponse class. The HttpResponseBase class enables you to create derived classes that are like the HttpResponse class, but that you can customize and that work outside the ASP.NET pipeline. When you perform unit testing, you typically use a derived class to implement members that have customized behavior that fulfills the scenario you are testing.
The HttpResponseWrapper class derives from the HttpResponseBase class. The HttpResponseWrapper class serves as a wrapper for the HttpResponse class. At run time, you typically use an instance of the HttpResponseWrapper class to call members of the HttpResponse object.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
