Export (0) Print
Expand All

HttpResponse Members

Encapsulates HTTP-response information from an ASP.NET operation.

The HttpResponse type exposes the following members.

  NameDescription
Public method HttpResponse Infrastructure. Initializes a new instance of the HttpResponse class.
Top

  NameDescription
Public method AddCacheDependency Associates a set of cache dependencies with the response to facilitate invalidation of the response if it is stored in the output cache and the specified dependencies change.
Public method AddCacheItemDependencies Overloaded. Makes the validity of a cached response dependent on other items in the cache.
Public method AddCacheItemDependency Makes the validity of a cached response dependent on another item in the cache.
Public method AddFileDependencies Overloaded. Makes the validity of a cached response dependent on another item in the cache.
Public method AddFileDependency Adds a single file name to the collection of file names on which the current response is dependent.
Public method AddHeader Adds an HTTP header to the output stream. AddHeader is provided for compatibility with earlier versions of ASP.
Public method AppendCookie Infrastructure. Adds an HTTP cookie to the intrinsic cookie collection.
Public method AppendHeader Adds an HTTP header to the output stream.
Public method AppendToLog Adds custom log information to the Internet Information Services (IIS) log file.
Public method ApplyAppPathModifier 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 method BinaryWrite Writes a string of binary characters to the HTTP output stream.
Public method Clear Clears all content output from the buffer stream.
Public method ClearContent Clears all content output from the buffer stream.
Public method ClearHeaders Clears all headers from the buffer stream.
Public method Close Closes the socket connection to a client.
Public method DisableKernelCache Disables kernel caching for the current response.
Public method End Sends all currently buffered output to the client, stops execution of the page, and raises the EndRequest event.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flush Sends all currently buffered output to the client.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Pics Appends a HTTP PICS-Label header to the output stream.
Public method Redirect Overloaded. Redirects a client to a new URL.
Public method Static member RemoveOutputCacheItem Removes from the cache all cached items that are associated with the specified path. This method is static.
Public method SetCookie Infrastructure. Updates an existing cookie in the cookie collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TransmitFile Overloaded. Writes the specified file directly to an HTTP response output stream without buffering it in memory.
Public method Write Overloaded. Writes information to an HTTP response output stream.
Public method WriteFile Overloaded. Writes the specified file directly to an HTTP response output stream.
Public method WriteSubstitution Allows insertion of response substitution blocks into the response, which allows dynamic generation of specified response regions for output cached responses.
Top

  NameDescription
Public property Buffer Gets or sets a value indicating whether to buffer output and send it after the complete response is finished processing.
Public property BufferOutput Gets or sets a value indicating whether to buffer output and send it after the complete page is finished processing.
Public property Cache Gets the caching policy (such as expiration time, privacy settings, and vary clauses) of a Web page.
Public property CacheControl Gets or sets the Cache-Control HTTP header that matches one of the HttpCacheability enumeration values.
Public property Charset Gets or sets the HTTP character set of the output stream.
Public property ContentEncoding Gets or sets the HTTP character set of the output stream.
Public property ContentType Gets or sets the HTTP MIME type of the output stream.
Public property Cookies Gets the response cookie collection.
Public property Expires Gets or sets the number of minutes before a page cached on a browser 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.
Public property ExpiresAbsolute Gets or sets the absolute date and time at which to remove cached information from the cache. ExpiresAbsolute is provided for compatibility with earlier versions of ASP.
Public property Filter Gets or sets a wrapping filter object that is used to modify the HTTP entity body before transmission.
Public property HeaderEncoding Gets or sets an Encoding object that represents the encoding for the current header output stream.
Public property Headers Gets the collection of response headers.
Public property IsClientConnected Gets a value indicating whether the client is still connected to the server.
Public property IsRequestBeingRedirected Gets a Boolean value indicating whether the client is being transferred to a new location.
Public property Output Enables output of text to the outgoing HTTP response stream.
Public property OutputStream Enables binary output to the outgoing HTTP content body.
Public property RedirectLocation Gets or sets the value of the Http Location header.
Public property Status Sets the Status line that is returned to the client.
Public property StatusCode Gets or sets the HTTP status code of the output returned to the client.
Public property StatusDescription Gets or sets the HTTP status string of the output returned to the client.
Public property SubStatusCode Gets or sets a value qualifying the status code of the response.
Public property SuppressContent Gets or sets a value indicating whether to send HTTP content to the client.
Public property TrySkipIisCustomErrors Gets or sets a value that specifies whether IIS 7.0 custom errors are disabled.
Top

Community Additions

ADD
Show:
© 2014 Microsoft