pedronauck / micro-router

:station: A tiny and functional router for Zeit's Micro

Home Page:https://www.npmjs.com/microrouter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transforming `http.incomingMessage` to `Object`.

paulogdm opened this issue · comments

This line.
You are making a new Object instead of just extending the http.incomingMessage Class. Is there any reason for that?
I believe it will be faster if we just extend to class like:

req.query = query
...

what do you think? I can do a PR if you want!

Sorry, idk what I was thinking when I opened this issue.