feat: allow headers to be sent with session.downloadURL() (#38785)

This commit is contained in:
Shelley Vohr 2023-06-21 15:31:28 +02:00 committed by GitHub
parent 74d73166d9
commit e73edb5481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 120 additions and 4 deletions

View file

@ -1284,9 +1284,11 @@ reused for new connections.
Returns `Promise<Buffer>` - resolves with blob data.
#### `ses.downloadURL(url)`
#### `ses.downloadURL(url[, options])`
* `url` string
* `options` Object (optional)
* `headers` Record<string, string> (optional) - HTTP request headers.
Initiates a download of the resource at `url`.
The API will generate a [DownloadItem](download-item.md) that can be accessed