Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for easily rendering async responses
- Loading branch information
Ben Myles
committed
Jun 22, 2010
1 parent
fba8ceb
commit 9f12a24
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Fastr | ||
module Async | ||
def async_resp(&blk) | ||
env['async.callback'].call(blk.call) | ||
end | ||
|
||
def render_async(resp=nil) | ||
[-1, {}, []].freeze | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters