Click or drag to resize

Headers Class

Version 130.1.90
Request / response headers as keys / values of JSON object.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericDictionaryString, String
    CefSharp.DevTools.NetworkHeaders

Namespace: CefSharp.DevTools.Network
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public class Headers : Dictionary<string, string>

The Headers type exposes the following members.

Constructors
 NameDescription
Public methodHeaders Initializes a new instance of the Headers class.
Top
Properties
 NameDescription
Public propertyComparerGets the IEqualityComparerT that is used to determine equality of keys for the dictionary.
(Inherited from DictionaryString, String)
Public propertyCountGets the number of key/value pairs contained in the DictionaryTKey, TValue.
(Inherited from DictionaryString, String)
Public propertyItemGets or sets the value associated with the specified key.
(Inherited from DictionaryString, String)
Public propertyKeysGets a collection containing the keys in the DictionaryTKey, TValue.
(Inherited from DictionaryString, String)
Public propertyValuesGets a collection containing the values in the DictionaryTKey, TValue.
(Inherited from DictionaryString, String)
Top
Methods
 NameDescription
Public methodAddAdds the specified key and value to the dictionary.
(Inherited from DictionaryString, String)
Public methodAppendCommaSeparatedValues Quotes any values containing commas, and then comma joins all of the values with any existing values.
Public methodClearRemoves all keys and values from the DictionaryTKey, TValue.
(Inherited from DictionaryString, String)
Public methodContainsKeyDetermines whether the DictionaryTKey, TValue contains the specified key.
(Inherited from DictionaryString, String)
Public methodContainsValueDetermines whether the DictionaryTKey, TValue contains a specific value.
(Inherited from DictionaryString, String)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetCommaSeparatedValues Get the associated values from the dictionary separated into individual values. Quoted values will not be split, and the quotes will be removed.
Public methodGetEnumeratorReturns an enumerator that iterates through the DictionaryTKey, TValue.
(Inherited from DictionaryString, String)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetObjectDataImplements the ISerializable interface and returns the data needed to serialize the DictionaryTKey, TValue instance.
(Inherited from DictionaryString, String)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnDeserializationImplements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from DictionaryString, String)
Public methodRemoveRemoves the value with the specified key from the DictionaryTKey, TValue.
(Inherited from DictionaryString, String)
Public methodSetCommaSeparatedValues Quotes any values containing commas, and then comma joins all of the values.
Public methodToDictionary Returns itself
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetValueGets the value associated with the specified key.
(Inherited from DictionaryString, String)
Public methodTryGetValues Gets an array of values for the specified key. Values are comma seperated and will be split into a string[]. Quoted values will not be split, and the quotes will be removed.
Top
Remarks
CDP uses comma seperated values to store multiple header values. Use TryGetValues(String, String) or GetCommaSeparatedValues(String) to get a string[] for headers that have multiple values.
See Also