Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add response object #33
Setting response data directly via the server acts like a form of global state. It makes it much harder to embed requests in each other (e.g.
However, we don't want this to be overly complicated to use. The benefit of returning raw data is you can work with it easily.
After #24 is merged, this can be dropped in with no changes, but will only send the data. We can then work on moving all the status/header setting code to the response object, and the sending code to the server.
Further feedback much appreciated.