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