.NET Framework Class Library
HttpResponse Members

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

The HttpResponse type exposes the following members.

Constructors

  NameDescription
Public methodHttpResponseInfrastructure. Initializes a new instance of the HttpResponse class.
Top
Methods

  NameDescription
Public methodAddCacheDependencyAssociates 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 methodAddCacheItemDependenciesOverloaded. Makes the validity of a cached response dependent on other items in the cache.
Public methodAddCacheItemDependencyMakes the validity of a cached response dependent on another item in the cache.
Public methodAddFileDependenciesOverloaded. Makes the validity of a cached response dependent on another item in the cache.
Public methodAddFileDependencyAdds a single file name to the collection of file names on which the current response is dependent.
Public methodAddHeaderAdds an HTTP header to the output stream. AddHeader is provided for compatibility with earlier versions of ASP.
Public methodAppendCookieInfrastructure. Adds an HTTP cookie to the intrinsic cookie collection.
Public methodAppendHeaderAdds an HTTP header to the output stream.
Public methodAppendToLogAdds custom log information to the Internet Information Services (IIS) log file.
Public methodApplyAppPathModifierAdds 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 methodBinaryWriteWrites a string of binary characters to the HTTP output stream.
Public methodClearClears all content output from the buffer stream.
Public methodClearContentClears all content output from the buffer stream.
Public methodClearHeadersClears all headers from the buffer stream.
Public methodCloseCloses the socket connection to a client.
Public methodDisableKernelCacheDisables kernel caching for the current response.
Public methodEndSends all currently buffered output to the client, stops execution of the page, and raises the EndRequest event.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodFlushSends all currently buffered output to the client.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPicsAppends a HTTP PICS-Label header to the output stream.
Public methodRedirectOverloaded. Redirects a client to a new URL.
Public methodStatic memberRemoveOutputCacheItemRemoves from the cache all cached items that are associated with the specified path. This method is static.
Public methodSetCookieInfrastructure. Updates an existing cookie in the cookie collection.
Public methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Public methodTransmitFileOverloaded. Writes the specified file directly to an HTTP response output stream without buffering it in memory.
Public methodWriteOverloaded. Writes information to an HTTP response output stream.
Public methodWriteFileOverloaded. Writes the specified file directly to an HTTP response output stream.
Public methodWriteSubstitutionAllows insertion of response substitution blocks into the response, which allows dynamic generation of specified response regions for output cached responses.
Top
Properties

  NameDescription
Public propertyBufferGets or sets a value indicating whether to buffer output and send it after the complete response is finished processing.
Public propertyBufferOutputGets or sets a value indicating whether to buffer output and send it after the complete page is finished processing.
Public propertyCacheGets the caching policy (such as expiration time, privacy settings, and vary clauses) of a Web page.
Public propertyCacheControlGets or sets the Cache-Control HTTP header that matches one of the HttpCacheability enumeration values.
Public propertyCharsetGets or sets the HTTP character set of the output stream.
Public propertyContentEncodingGets or sets the HTTP character set of the output stream.
Public propertyContentTypeGets or sets the HTTP MIME type of the output stream.
Public propertyCookiesGets the response cookie collection.
Public propertyExpiresGets 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 propertyExpiresAbsoluteGets 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 propertyFilterGets or sets a wrapping filter object that is used to modify the HTTP entity body before transmission.
Public propertyHeaderEncodingGets or sets an Encoding object that represents the encoding for the current header output stream.
Public propertyHeadersGets the collection of response headers.
Public propertyIsClientConnectedGets a value indicating whether the client is still connected to the server.
Public propertyIsRequestBeingRedirectedGets a Boolean value indicating whether the client is being transferred to a new location.
Public propertyOutputEnables output of text to the outgoing HTTP response stream.
Public propertyOutputStreamEnables binary output to the outgoing HTTP content body.
Public propertyRedirectLocationGets or sets the value of the Http Location header.
Public propertyStatusSets the Status line that is returned to the client.
Public propertyStatusCodeGets or sets the HTTP status code of the output returned to the client.
Public propertyStatusDescriptionGets or sets the HTTP status string of the output returned to the client.
Public propertySubStatusCodeGets or sets a value qualifying the status code of the response.
Public propertySuppressContentGets or sets a value indicating whether to send HTTP content to the client.
Public propertyTrySkipIisCustomErrorsGets or sets a value that specifies whether IIS 7.0 custom errors are disabled.
Top
See Also

Reference

Tags :


Page view tracker