Click or drag to resize
HTTPHeaders Methods

The HTTPHeaders type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds a new header containing the specified name and value.
Public methodAddRange
Adds one or more headers
Public methodAllValues
Returns all values of the named header in a single string, delimited by commas
Public methodAssignFromString
Public methodByteCount
Get byte count of this HTTP header instance. NOTE: This method should've been abstract.
Public methodCount
Number of HTTP headers
Public methodCountOf
Returns the count of instances of the named header
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExists
Determines if the Headers collection contains a header of the specified name, with any value.
Public methodExistsAndContains
Determines if the Headers collection contains one or more headers of the specified name, and sHeaderValue is part of one of those Headers' value.
Public methodExistsAndEquals
Determines if the Headers collection contains a header of the specified name, and sHeaderValue=Header's value. Similar to a case-insensitive version of: headers[sHeaderName]==sHeaderValue, although it checks all instances of the named header.
Public methodExistsAny
Determines if the Headers collection contains any header from the specified list, with any value.
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 methodFindAll
Returns all instances of the named header
Protected methodFreeReaderLock
Protected methodFreeWriterLock
If you get the Writer lock, Free it ASAP or you're going to hang or deadlock the Session
Public methodGetEnumerator
Enumerator for HTTPHeader storage collection
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetReaderLock
Get the Reader Lock if you plan to enumerate the Storage collection.
Public methodGetTokenValue
Returns the Value from a token in the header. Correctly handles double-quoted strings. Requires semicolon for delimiting tokens Limitation: FAILS if semicolon is in token's value, even if quoted. FAILS in the case of crazy headers, e.g. Header: Blah="SoughtToken=Blah" SoughtToken=MissedMe We really need a "proper" header parser
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodGetWriterLock
Get the Writer Lock if you plan to change the Storage collection. NB: You only need this lock if you plan to change the collection itself; you can party on the items in the collection if you like without locking.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(String)
Removes all headers from the header collection which have the specified name.
Public methodRemove(HTTPHeaderItem)
Removes a HTTPHeader item from the collection
Public methodRemoveAll
Removes all HTTPHeader items from the collection
Public methodRemoveRange
Removes all headers from the header collection which have the specified names.
Public methodRenameHeaderItems
Renames all headers in the header collection which have the specified name.
Public methodToArray
Copies the Headers to a new array. Prefer this method over the enumerator to avoid cross-thread problems.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also