Thetype exposes the following members.
Adds a new header containing the specified name and value.
Adds one or more headers
Returns all values of the named header in a single string, delimited by commas
Get byte count of this HTTP header instance. NOTE: This method should've been abstract.
Number of HTTP headers
Returns the count of instances of the named header
Determines if the Headers collection contains a header of the specified name, with any value.
Determines if the Headers collection contains one or more headers of the specified name, and sHeaderValue is part of one of those Headers' value.
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.
Determines if the Headers collection contains any header from the specified list, with any value.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Returns all instances of the named header
If you get the Writer lock, Free it ASAP or you're going to hang or deadlock the Session
Enumerator for HTTPHeader storage collection
Serves as a hash function for a particular type.(Inherited from Object.)
Get the Reader Lock if you plan to enumerate the Storage collection.
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
Gets the Type of the current instance.(Inherited from Object.)
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.
Creates a shallow copy of the current Object.(Inherited from Object.)
Removes all headers from the header collection which have the specified name.
Removes a HTTPHeader item from the collection
Removes all HTTPHeader items from the collection
Removes all headers from the header collection which have the specified names.
Renames all headers in the header collection which have the specified name.
Copies the Headers to a new array. Prefer this method over the enumerator to avoid cross-thread problems.
Returns a string that represents the current object.(Inherited from Object.)
Text encoding to be used when converting this header object to/from a byte array
HTTP version (e.g. HTTP/1.1)
Storage for individual HTTPHeaderItems in this header collection NB: Using a list is important, as order can matter
Indexer property. Returns HTTPHeaderItem by index. Throws Exception if index out of bounds
Gets or sets the value of a header. In the case of Gets, the value of the first header of that name is returned. If the header does not exist, returns null. In the case of Sets, the value of the first header of that name is updated. If the header does not exist, it is added.