facebook/tornado — pull request #637 by danicgross (2012-11-14 01:28:26+00:00)
Title: wrap-httpclient-callbacks

This request fixes a bug where callbacks returning from `AsyncHTTPClient().fetch` have no stack context.

I've manually wrapped the `header_callback`, `streaming_callback` and `prepare_curl_callback` functions (where applicable). It probably makes more sense at some point to move a lot of the shared request-preparation code outside out of the actual HTTPClient implementation class. Should all wrapping just happen on the `HTTPRequest.__init__` level?