Merge pull request #1208 from deepak1556/protocol
adding protocol.RequestBufferJob api
This commit is contained in:
commit
2c0b50a7e9
9 changed files with 144 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue