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
Lazy initialization of req.json #1677
I assume that there's probably a reason why the request parameters aren't lazily initialized, but I think the "pay once you use" is quite nice. Hence this PR is an open question whether the request parameters can be initialized on their first use. An additional benefit of using this pattern is that the returned
I'm actually planning to make the whole request parsing as lazy as possible for the pending rewrite of the HTTP module (in the form of a new
The merge for this will be deferred until the 0.8.0 release is out to avoid last-minute regressions.