Version 113.3.50
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 113.3.50.0 (113.3.50.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