mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
add protocol.RequestBuffer api
This commit is contained in:
@@ -74,3 +74,12 @@ mime types.
|
||||
* `data` String
|
||||
|
||||
Create a request job which sends a string as response.
|
||||
|
||||
## Class: protocol.RequestBufferJob(options)
|
||||
|
||||
* `options` Object
|
||||
* `mimeType` String - Default is `application/octet-stream`
|
||||
* `encoding` String - Default is `UTF-8`
|
||||
* `data` Buffer
|
||||
|
||||
Create a request job which accepts a buffer and sends a string as response.
|
||||
|
||||
Reference in New Issue
Block a user