add protocol.RequestBuffer api

This commit is contained in:
deepak1556 2015-03-16 18:23:45 +05:30
parent b19cfba98e
commit 9eac8ef266
9 changed files with 144 additions and 0 deletions

View file

@ -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.