The WebHeaderCollection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| WebHeaderCollection |
Creates an empty collection of WEB headers.
|
Methods
| Name | Description | |
|---|---|---|
| Add(String) |
Inserts a new header into the collection.
| |
| Add(String, String) |
Inserts a header with the specified name and value into the
collection.
| |
| GetValues |
Returns the values for the specified header name.
| |
| IsBlankString | ||
| IsRestricted |
Tests whether the specified HTTP header can be set.
| |
| Remove |
Removes the specified header from the collection.
| |
| Set |
Sets the specified header to the specified value.
| |
| ToByteArray |
Generates a byte array representation of the headers, that is ready
to be sent.
| |
| ToString |
Generates a string representation of the headers, that is ready to
be sent except for it being in String format.
(Overrides Object..::..ToString()()()().) |
Properties
| Name | Description | |
|---|---|---|
| AllKeys |
Gets all header names (keys) in the collection.
| |
| Count |
Gets the number of headers in the collection.
| |
| Item |
Returns the string value for the header.
|