-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename "url" APIs to "path". #66
Comments
Is path really a better term since it contains the protocol and domain as
|
Aha! See, it is confusing people. No, @editedredx request.url, the intercept 'url' option, etc. are all paths. They do not include the protocol or host. You are thinking of request.fullUrl() and friends. |
|
That is fair. Maybe I am barking up the wrong tree. Express gets that from Node's own |
Short of breaking changes, we could alias |
👍 I'll make a PR sometime this coming week. |
Having url and fullUrl is an odd concept to me. It seems like a wart in Hoxy's otherwise excellent semantics. I find myself explaining it in code comments.
Would you be open to renaming the usages of "url" to "path" where that is what it really means?
As a stretch goal, "fullUrl" could then become "url".
The text was updated successfully, but these errors were encountered: