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