Version 90.6.50
Namespace:
CefSharp
Assembly:
CefSharp.Core (in CefSharp.Core.dll) Version: 90.6.50.0
Syntax public NameValueCollection Headers { get; set; }
public:
virtual property NameValueCollection^ Headers {
NameValueCollection^ get () sealed;
void set (NameValueCollection^ value) sealed;
}
Property Value
Type:
NameValueCollectionImplements
IRequestHeadersExamples
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