url.parse is an expensive function, so making sure to use it once for mu...

...ltiple middleware