Permalink
Browse files

notes about bounce.respond()

  • Loading branch information...
1 parent 8a65102 commit aec7719153ec1f6dd8e121d1858e9c33a122a706 @substack committed Oct 10, 2011
Showing with 10 additions and 3 deletions.
  1. +9 −2 README.markdown
  2. +1 −1 package.json
View
@@ -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
---
@@ -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
=======
View
@@ -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"

0 comments on commit aec7719

Please sign in to comment.