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