Add extra headers option to webContents.loadUrl

This commit is contained in:
Gohy Leandre 2015-10-26 22:18:16 +01:00
parent 65ece4b1ca
commit b29a8c94b9
2 changed files with 5 additions and 0 deletions

View file

@ -183,6 +183,7 @@ See [session documentation](session.md) for this object's methods.
* `options` Object (optional), properties:
* `httpReferrer` String - A HTTP Referrer url.
* `userAgent` String - A user agent originating the request.
* `extraHeaders` String - Extra headers separated by "\n"
Loads the `url` in the window, the `url` must contain the protocol prefix,
e.g. the `http://` or `file://`.