Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
doc/api: add properties & methods for Call instances
Browse files Browse the repository at this point in the history
  • Loading branch information
skenqbx committed Apr 21, 2015
1 parent 6ed9e19 commit 08c8246
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/api.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ _Note: For convenience & compatibility with node core API, all request options c
### new Call(rail, opt_options)
Creates a new `Call` object.

#### call.ended
A boolean indicating the state of the writable stream.

#### call.request
The currently active `request` stream, if any.

#### call.response
The currently active `response` stream, if any.

### call.write(chunk, encoding, opt_callback)
See [writable.write()](https://nodejs.org/api/stream.html#stream_writable_write_chunk_encoding_callback).

### call.end(chunk, encoding, opt_callback)
See [writable.end()](https://nodejs.org/api/stream.html#stream_writable_end_chunk_encoding_callback).

### Event 'request'

`function({Object} request)`
Expand Down

0 comments on commit 08c8246

Please sign in to comment.