Version 109.1.110
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 109.1.110.0 (109.1.110.0)
Syntax NameValueCollection Headers { get; set; }
property NameValueCollection^ Headers {
NameValueCollection^ get ();
void set (NameValueCollection^ value);
}
Property Value
Type:
NameValueCollectionExamples
This example shows how to modify headers, make sure you reassign the collection
once it's been modified.
var headers = request.Headers;
var userAgent = headers["User-Agent"];
headers["User-Agent"] = userAgent + " CefSharp";
request.Headers = headers;
See Also