add docs
This commit is contained in:
parent
21be9a3309
commit
975d677f55
3 changed files with 27 additions and 0 deletions
|
@ -363,6 +363,13 @@ event. The [DownloadItem](download-item.md) will not have any `WebContents` asso
|
||||||
the initial state will be `interrupted`. The download will start only when the
|
the initial state will be `interrupted`. The download will start only when the
|
||||||
`resume` API is called on the [DownloadItem](download-item.md).
|
`resume` API is called on the [DownloadItem](download-item.md).
|
||||||
|
|
||||||
|
#### `ses.clearAuthCache(options[, callback])`
|
||||||
|
|
||||||
|
* `options` ([RemovePassword](structures/remove-password.md) | [RemoveClientCertificate](structures/remove-client-certificate.md))
|
||||||
|
* `callback` Function (optional) - Called when operation is done
|
||||||
|
|
||||||
|
Clears the session’s HTTP authentication cache.
|
||||||
|
|
||||||
### Instance Properties
|
### Instance Properties
|
||||||
|
|
||||||
The following properties are available on instances of `Session`:
|
The following properties are available on instances of `Session`:
|
||||||
|
|
5
docs/api/structures/remove-client-certificate.md
Normal file
5
docs/api/structures/remove-client-certificate.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# RemoveClientCertificate Object
|
||||||
|
|
||||||
|
* `type` String - `clientCertificate`.
|
||||||
|
* `origin` String - Origin of the server whose associated client certificate
|
||||||
|
must be removed from the cache.
|
15
docs/api/structures/remove-password.md
Normal file
15
docs/api/structures/remove-password.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# RemovePassword Object
|
||||||
|
|
||||||
|
* `type` String - `password`.
|
||||||
|
* `origin` String (optional) - When provided, the authentication info
|
||||||
|
related to the origin will only be removed otherwise the entire cache
|
||||||
|
will be cleared.
|
||||||
|
* `scheme` String (optional) - Scheme of the authentication.
|
||||||
|
Can be `basic`, `digest`, `ntlm`, `negotiate`. Must be provided if
|
||||||
|
removing by `origin`.
|
||||||
|
* `realm` String (optional) - Realm of the authentication. Must be provided if
|
||||||
|
removing by `origin`.
|
||||||
|
* `username` String (optional) - Credentials of the authentication. Must be
|
||||||
|
provided if removing by `origin`.
|
||||||
|
* `password` String (optional) - Credentials of the authentication. Must be
|
||||||
|
provided if removing by `origin`.
|
Loading…
Reference in a new issue