Skip to content

Conversation

@furkanmustafa
Copy link
Contributor

This PR introduces env['async.callback'] support for async responses.

What I did to achieve this is;

  • Split handle_request method in two,
    • initial handle_request to determine to process response immediately or not
    • handle_app_response to process/deliver response
  • Inserted a lambda into env['async.callback'] (in handle_request method)

Not sure if I followed required patterns while doing this, please let me know if anything is weird.

Example working rails application code:
https://gist.github.com/furkanmustafa/2d9edefcaa0336ed982b

evanphx added a commit that referenced this pull request Feb 25, 2016
@evanphx evanphx merged commit 665d805 into puma:master Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants