Skip to main content

HeaderCollection

Collection of headers for sending a web request, or from web request response.

Members

Properties

NameDescription
HeaderCollection.[key]Access a given header name.
HeaderCollection.KeysList of header keys (names).

Constructor

NameDescription
HeaderCollection()Creates a new Header Collection.

Methods

NameDescription
HeaderCollection.Add(headerName, headerValue)Add a new header by name and values.
HeaderCollection.Add(KeyValue)Add a new header by KeyValue.
HeaderCollection.Contains(key)Is the collection containing the given key (header name)?