Constructor
HttpHeaderList constructor
HttpHeaderList() #
Initializes a new instance of the HttpHeaderList class.
public HttpHeaderList()HttpHeaderList(int) #
Initializes a new instance of the HttpHeaderList class with the specified initial capacity.
public HttpHeaderList(int capacity)Parameters #
capacity int
The number of elements that the new list can initially store.
HttpHeaderList(IEnumerable<HttpHeader>) #
Initializes a new instance of the HttpHeaderList class that contains elements copied from the specified collection.
public HttpHeaderList(IEnumerable<HttpHeader> headers)Parameters #
headers IEnumerable<HttpHeader>
The collection whose elements are copied to the new list.
HttpHeaderList(IEnumerable<HttpHeader>, bool) #
Initializes a new instance of the HttpHeaderList class that contains elements copied from the specified collection.
public HttpHeaderList(IEnumerable<HttpHeader> headers, bool readOnly = false)Parameters #
headers IEnumerable<HttpHeader>
The collection whose elements are copied to the new list.
readOnly bool