feat: promisify ses.clearHostResolverCache() (#17229)

This commit is contained in:
Shelley Vohr 2019-03-08 10:26:17 -08:00 committed by GitHub
parent 9d8619f305
commit e5e6aa207c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 11 deletions

View file

@ -354,12 +354,20 @@ session.fromPartition('some-partition').setPermissionCheckHandler((webContents,
})
```
#### `ses.clearHostResolverCache([callback])`
#### `ses.clearHostResolverCache(callback)`
* `callback` Function (optional) - Called when operation is done.
Clears the host resolver cache.
**[Deprecated Soon](promisification.md)**
#### `ses.clearHostResolverCache()`
Returns `Promise<void>` - Resolves when the operation is complete.
Clears the host resolver cache.
#### `ses.allowNTLMCredentialsForDomains(domains)`
* `domains` String - A comma-separated list of servers for which