HttpResponseBase Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the base class for classes that provides HTTP-response information from an ASP.NET operation.
public ref class HttpResponseBase abstract
public abstract class HttpResponseBase
type HttpResponseBase = class
Public MustInherit Class HttpResponseBase
- Inheritance
-
HttpResponseBase
- Derived
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.
Http |
Initializes a new instance of the HttpResponseBase class. |
Buffer |
Gets or sets a value that indicates whether to buffer output and send it after the complete response has finished processing. |
Buffer |
Gets or sets a value that indicates whether to buffer output and send it after the complete page has finished processing. |
Cache |
Gets the caching policy (such as expiration time, privacy settings, and vary clauses) of the current Web page. |
Cache |
Gets or sets the |
Charset |
Gets or sets the HTTP character set of the current response. |
Client |
Gets a CancellationToken object that is tripped when the client disconnects. |
Content |
Gets or sets the content encoding of the current response. |
Content |
Gets or sets the HTTP MIME type of the current response. |
Cookies |
Gets the response cookie collection. |
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 Active Server Pages (ASP). |
Expires |
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 |
Gets or sets a filter object that is used to modify the HTTP entity body before transmission. |
Header |
Gets or sets the encoding for the header of the current response. |
Headers |
Gets the collection of response headers. |
Headers |
Gets a value indicating whether the response headers have been written. |
Is |
Gets a value that indicates whether the client is connected to the server. |
Is |
Gets a value that indicates whether the client is being redirected to a new location. |
Output |
Gets the object that enables text output to the HTTP response stream. |
Output |
Gets the object that enables binary output to the outgoing HTTP content body. |
Redirect |
Gets or sets the value of the HTTP |
Status |
Gets or sets the |
Status |
Gets or sets the HTTP status code of the output that is returned to the client. |
Status |
Gets or sets the HTTP status message of the output that is returned to the client. |
Sub |
Gets or sets a value that qualifies the status code of the response. |
Supports |
Gets a value that indicates whether the connection supports asynchronous flush operation. |
Suppress |
Gets or sets a value that indicates whether only the HTTP headers will be sent to the client. |
Suppress |
Gets or sets a value indicating whether to suppress the default |
Suppress |
Gets or sets a value that specifies whether forms authentication redirection to the login page should be suppressed. |
Try |
Gets or sets a value that specifies whether IIS 7.0 custom errors are disabled. |
Add |
Adds an associates cache dependencies with the response that enable the response to be invalidated if it is cached and if the specified dependencies change. |
Add |
Makes the validity of a cached response dependent on the specified items in the cache. |
Add |
Makes the validity of a cached item dependent on the specified items in the cache. |
Add |
Makes the validity of a cached response dependent on the specified item in the cache. |
Add |
Adds file names to the collection of file names on which the current response is dependent. |
Add |
Adds an array of file names to the collection of file names on which the current response is dependent. |
Add |
Adds a single file name to the collection of file names on which the current response is dependent. |
Add |
Adds an HTTP header to the current response. This method is provided for compatibility with earlier versions of ASP. |
Add |
Registers a callback that the ASP.NET runtime will invoke immediately before response headers are sent for this request. |
Append |
Adds an HTTP cookie to the HTTP response cookie collection. |
Append |
Adds an HTTP header to the current response. |
Append |
Adds custom log information to the Internet Information Services (IIS) log file. |
Apply |
Adds a session ID to the virtual path if the session is using Cookieless session state, and returns the combined path. |
Begin |
Sends the currently buffered response to the client. |
Binary |
Writes a string of binary characters to the HTTP output stream. |
Clear() |
Clears all headers and content output from the current response. |
Clear |
Clears all content from the current response. |
Clear |
Clears all headers from the current response. |
Close() |
Closes the socket connection to a client. |
Disable |
Disables kernel caching for the current response. |
Disable |
Disables IIS user-mode caching for this response. |
End() |
Sends all currently buffered output to the client, stops execution of the requested process, and raises the EndRequest event. |
End |
Completes an asynchronous flush operation. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Flush() |
Sends all currently buffered output to the client. |
Flush |
Asynchronously sends all currently buffered output to the client. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Pics(String) |
Appends an HTTP |
Push |
Supports applications sending push promises to HTTP 2.0 clients. For more information, see HTTP/2 Specification Section 8.2: Server Push. |
Push |
Supports applications sending push promises to HTTP 2.0 clients. For more information, see HTTP/2 Specification Section 8.2: Server Push. |
Redirect(String, Boolean) |
Redirects a request to the specified URL and specifies whether execution of the current process should terminate. |
Redirect(String) |
Redirects a request to the specified URL. |
Redirect |
Performs a permanent redirect from the requested URL to the specified URL, and provides the option to complete the response. |
Redirect |
Performs a permanent redirect from the requested URL to the specified URL. |
Redirect |
Redirects the request to a new URL by using route parameter values. |
Redirect |
Redirects the request to a new URL by using route parameter values. |
Redirect |
Redirects the request to a new URL by using route parameter values and a route name. |
Redirect |
Redirects the request to a new URL by using route parameter values and a route name. |
Redirect |
Redirects the request to a new URL by using a route name. |
Redirect |
Performs a permanent redirection from the requested URL to a new URL by using route parameter values. |
Redirect |
Performs a permanent redirection from the requested URL to a new URL by using route parameter values. |
Redirect |
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. |
Redirect |
Performs a permanent redirection from the requested URL to a new URL by using route parameter values and a route name. |
Redirect |
Performs a permanent redirection from the requested URL to a new URL by using a route name. |
Remove |
Uses the specified output-cache provider to remove all output-cache artifacts that are associated with the specified path. |
Remove |
Removes from the cache all cached items that are associated with the specified path. |
Set |
Updates an existing cookie in the cookie collection. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Transmit |
Writes the specified part of a file to the HTTP response output stream, without buffering it in memory. |
Transmit |
Writes the specified file to the HTTP response output stream, without buffering it in memory. |
Write(Char) |
Writes a character to an HTTP response output stream. |
Write(Char[], Int32, Int32) |
Writes the specified array of characters to the HTTP response output stream. |
Write(Object) |
Writes the specified object to the HTTP response stream. |
Write(String) |
Writes the specified string to the HTTP response output stream. |
Write |
Writes the specified file to the HTTP response output stream. |
Write |
Writes the contents of the specified file to the HTTP response output stream and specifies whether the content is written as a memory block. |
Write |
Writes the specified file to the HTTP response output stream. |
Write |
Writes the contents of the specified file to the HTTP response output stream as a file block. |
Write |
Inserts substitution blocks into the response, which enables dynamic generation of regions for cached output responses. |
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: