`url.format` will return an object owns `pathname` rather than `path`, however `http.request` and `https.request` do accept `path` rather than `pathname`. sometimes, we would seem to write our program: ``` js var urlobj = url.format('http://github.com/yorkie'); http.request(urlobj, function (res) { // actually we get the response from http://github.com }); ``` `path` is missing, yeah actually we can add `urlobj.path = urlobj.pathname` for now, it does work as well, but it's a weird behavior in api level imo. I'm guessing we should unify these two/three functions definitely, of course backward compatible with `url` module.
url.formatwill return an object ownspathnamerather thanpath, howeverhttp.requestandhttps.requestdo acceptpathrather thanpathname.sometimes, we would seem to write our program:
pathis missing, yeah actually we can addurlobj.path = urlobj.pathnamefor now, it does work as well, but it's a weird behavior in api level imo.I'm guessing we should unify these two/three functions definitely, of course backward compatible with
urlmodule.