spdy-http2 / node-spdy

SPDY server on Node.js
2.81k stars 196 forks source link

Get Raw http/2 dump #326

Open MeltedCheeseOnTaco opened 7 years ago

MeltedCheeseOnTaco commented 7 years ago

Hello, its not an issue, rather a question, i'm using the spdy to create http/2 server. I need to get a raw http/2 payload dump, on specific url, can i do that?

For example, i want to dump http/2 request from browser on mydomain.com/users

router.get('/', function(req, res, next) {
  console.log(req);
});

Can i reach it from req, or i need to change the module code to include raw data inside the request object? Thanks.

yindia commented 5 years ago

You can access req object inside that route