Class HttpHeaders
A collection of headers and their values as defined in RFC 2616.
public abstract class HttpHeaders
- Inheritance
-
HttpHeaders
- Derived
- Inherited Members
- Extension Methods
Constructors
HttpHeaders()
Initializes a new instance of the HttpHeaders class.
protected HttpHeaders()
Methods
Add(string, string)
Adds the specified header and its value into the HttpHeaders collection.
public void Add(string name, string value)
Parameters
Exceptions
- ArgumentNullException
The values cannot be null or empty.