Class
HttpHeaderList
Represents a typed list of HttpHeader.
public sealed class HttpHeaderList : IList<HttpHeader>, ICollection<HttpHeader>, IEnumerable<HttpHeader>, IEnumerableInheritance #
Implements #
IList<HttpHeader>, ICollection<HttpHeader>, IEnumerable<HttpHeader>, IEnumerable
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| HttpHeaderList() | Initializes a new instance of the HttpHeaderList class. |
| HttpHeaderList(int) | Initializes a new instance of the HttpHeaderList class with the specified initial capacity. |
| HttpHeaderList(IEnumerable<HttpHeader>) | Initializes a new instance of the HttpHeaderList class that contains elements copied from the specified collection. |
| HttpHeaderList(IEnumerable<HttpHeader>, bool) | Initializes a new instance of the HttpHeaderList class that contains elements copied from the specified collection. |
Properties #
| Name | Description |
|---|---|
| Count | |
| IsReadOnly | |
| this[int] |
Methods #
| Name | Description |
|---|---|
| Add(HttpHeader) | |
| Clear() | |
| Contains(HttpHeader) | |
| Contains(string) | Determines whether the collection contains a header with the specified name. |
| CopyTo(HttpHeader[], int) | |
| Get(string) | Gets the values of all headers that match the specified name. |
| GetEnumerator() | |
| IndexOf(HttpHeader) | |
| Insert(int, HttpHeader) | |
| Remove(HttpHeader) | Removes all HttpHeader instances that match the specified header. |
| Remove(string) | Removes all HttpHeader instances that match the specified header name. |
| RemoveAt(int) | |
| Set(HttpHeader) | Sets the specified HttpHeader in the collection, replacing any existing header with the same name. |