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