Skip to content
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 URI#full_path to URI#request_target #10099

Merged

Conversation

straight-shoota
Copy link
Member

full_path is an unspecified term and open to interpretation. path in an URI context is just path and there is no "full" version of it.

The intention of this method is direct at extracting an HTTP request target in origin form. So it should be named appropriately.

This also includes a minor behavioural change: for opaque URIs the path does not default to / when empty. Otherwise it would turn an opaque URI into a hierarchical one. This method would typically not be used with opaque URI's, but it doesn't hurt to be complete on this.

Closes #9990

@straight-shoota straight-shoota added this to the 1.0.0 milestone Dec 30, 2020
@straight-shoota straight-shoota merged commit ba1fd45 into crystal-lang:master Jan 8, 2021
@straight-shoota straight-shoota deleted the refactor/uri-full_path branch January 8, 2021 23:46
saltycrys added a commit to saltycrys/invidious that referenced this pull request Feb 2, 2021
Rename `HTTPClient@socket` to `HTTPClient@io`, see
crystal-lang/crystal#9543.

Rename `URI#full_path` to `URI#request_target`, see
crystal-lang/crystal#10099.
FireMasterK pushed a commit to StuffNoOneCaresAbout/invidious that referenced this pull request Feb 4, 2021
Rename `HTTPClient@socket` to `HTTPClient@io`, see
crystal-lang/crystal#9543.

Rename `URI#full_path` to `URI#request_target`, see
crystal-lang/crystal#10099.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants