feat: allow headers to be sent with session.downloadURL()
(#38785)
This commit is contained in:
parent
74d73166d9
commit
e73edb5481
4 changed files with 120 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue