Methods

HttpResponse Methods

The methods of the HttpResponse class are listed here. For a complete list of HttpResponse class members, see the HttpResponse Members topic.

Public Methods

public methodAddCacheItemDependencies Makes the validity of a cached item dependent on other items in the cache.
public methodAddCacheItemDependency Makes the validity of a cached item dependent on another item in the cache.
public methodAddFileDependencies Adds a group of file names to the collection of file names on which the current response is dependent.
public methodAddFileDependency Adds a single file name to the collection of file names on which the current response is dependent.
public methodAddHeader Adds an HTTP header to the output stream.

AddHeader is provided for compatibility with previous versions of ASP.

public methodAppendHeader Adds an HTTP header to the output stream.
public methodAppendToLog Adds custom log information to the IIS log file.
public methodApplyAppPathModifier Adds a session ID to the virtual path if the session is using cookieless session state and returns the combined path. If cookieless session state is not used, ApplyAppPathModifier returns the original virtual path.
public methodBinaryWrite Writes a string of binary characters to the HTTP output stream.
public methodClear Clears all content output from the buffer stream.
public methodClearContent Clears all content output from the buffer stream.
public methodClearHeaders Clears all headers from the buffer stream.
public methodClose Closes the socket connection to a client.
public methodEnd Sends all currently buffered output to the client, stops execution of the page, and raises the Application_EndRequest event.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodFlush Sends all currently buffered output to the client.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodPics Appends a PICS-Label HTTP header to the output stream.
public methodRedirect Overloaded. Redirects a client to a new URL.
public methodstatic (Shared in Visual Basic)RemoveOutputCacheItem Static method removes from the cache all cached items associated with the specified path.
public methodToString (inherited from Object) Returns a String that represents the current Object.
public methodWrite Overloaded. Writes information to an HTTP output content stream.
public methodWriteFile Overloaded. Writes the specified file directly to an HTTP content output stream.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

HttpResponse Class | System.Web Namespace

Show:
© 2016 Microsoft