can now capture response bodies and calculate size (without relying on content-length header)
added content object to request to behave like one in response (this is not part of HAR spec!)
lots of testing coverage
linting
TODO:
test with restify + any other frameworks (koa, hapi)
full coverage
problem:
I'm attempting to capture the request body in a similar fashion to the response one, however, since the asynchronous events req.on('data') and req.on('end') are out of scope of res.end() that whole block is not doing anything, I couldn't figure out a clean way to bring the request body into scope here ...
wip, will add full description after:content
object torequest
to behave like one inresponse
(this is not part of HAR spec!)TODO:
problem:
I'm attempting to capture the request body in a similar fashion to the response one, however, since the asynchronous events
req.on('data')
andreq.on('end')
are out of scope ofres.end()
that whole block is not doing anything, I couldn't figure out a clean way to bring the request body into scope here ...