CachedResponse MembersC# API

The CachedResponse type exposes the following members.
Constructors

  NameDescription
Public methodCachedResponse(String)
Initialises a new instance of the CachedResponse class, using the specified url.
Public methodCachedResponse(Url)
Initialises a new instance of the CachedResponse class, using the specified Url.
Public methodCachedResponse(IntPtr, Boolean)
For internal use only. Of no interest to the user.
Back to Top
Methods

  NameDescription
Public methodClearHeaders
Removes all the HTTP response headers from this CachedResponse.
Public methodContainsHeader
Determines whether this CachedResponse contains the specified HTTP header.
Public methodDispose
Releases all resources used by the CachedResponse
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic membergetCPtr
For internal use only. Of no interest to the user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHeaderKeys
Gets a list of names of all the HTTP response headers set in this CachedResponse.
Public methodGetHeaders
Gets the HTTP response headers for this CachedResponse.
Public methodGetHeaderValue
Gets the value of the specified HTTP response header.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveHeader
Removes a specified HTTP response header from this CachedResponse.
Public methodSetHeader(String)
Sets an HTTP response header for this CachedResponse, using the contents of the specified string.
Public methodSetHeader(String, String)
Sets an HTTP response header for this CachedResponse, as a name/value pair.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnsetReferer
Removes the "Referer" HTTP header.
Back to Top
Properties

  NameDescription
Public propertyCharEncoding
Gets or sets the character encoding that is used to decode the data contained in this CachedResponse, for example "UTF-8".
Public propertyContentType
Gets or sets the value of the "Content-Type" HTTP header.
Public propertyHasReferer
Gets a value that indicates whether the "Referer" HTTP header has been set for this CachedResponse.
Public propertyReferer
Gets or sets the value of the "Referer" HTTP header.
Public propertyUrl
Gets the Url that this CachedResponse represents a response to.
Public propertyUserAgent
Gets or sets the value of the "User-Agent" HTTP header.
Back to Top
See Also