Skip to content

Commit

Permalink
notes about bounce.respond()
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Oct 10, 2011
1 parent 8a65102 commit aec7719
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.markdown
Expand Up @@ -57,8 +57,9 @@ Use `''` as a default route.
bouncy(cb)
==========

There is only one method, `bouncy(cb)`. Your callback `cb` will get these
arguments:
`bouncy(cb)` returns a new net.Server object that you can `.listen()` on.

Your callback `cb` will get these arguments:

req
---
Expand All @@ -81,6 +82,12 @@ These variants of `bounce()` are sugar for
and
`bounce(net.createConnection(port, host))`.

var res = bounce.respond()
--------------------------

Return a new HTTP response object for the request.
This is useful if you need to write an error result.

install
=======

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name" : "bouncy",
"description" : "Bounce HTTP requests around for a load balancer or http host router completely transparently",
"version" : "0.0.4",
"version" : "0.0.5",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/bouncy.git"
Expand Down

0 comments on commit aec7719

Please sign in to comment.