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

Adds support for working with URL Paths #12231

Merged
merged 1 commit into from
Feb 19, 2014
Merged

Conversation

wycats
Copy link
Contributor

@wycats wycats commented Feb 13, 2014

It is sometimes useful to parse just the path portion of a URL (path,
query string and fragment) rather than the entire URL.

In theory I could have made Url embed a Path, but that would be a
breaking change and I assume that Servo uses this API. I would be
happy to update the PR to embed Path in Url if that's what people
wanted.

It is sometimes useful to parse just the path portion of a URL (path,
query string and fragment) rather than the entire URL.
@huonw
Copy link
Member

huonw commented Feb 13, 2014

cc @SimonSapin

@SimonSapin
Copy link
Contributor

The code that’s in extra::url right now is a dead end IMO, see #10707 and rust-url. I’m interested in collecting use-cases in order to decide what API to expose in rust-url. Is this for decoding an incoming HTTP request?

Also, because the spec is written with the client’s point of view in mind, the result of "parsing" is percent-encoded, ready to be sent on the network. Your tests show percent-decoded results, which I guess is what you want on the server-side.

@alexcrichton
Copy link
Member

@wycats, would rust-url solve your needs? If so, perhaps we should delete url.rs and create liburl.

@alexcrichton
Copy link
Member

This is in a self-contained library for now, so I think it's fine to add in until we merge rust-url.

bors added a commit that referenced this pull request Feb 19, 2014
It is sometimes useful to parse just the path portion of a URL (path,
query string and fragment) rather than the entire URL.

In theory I could have made Url embed a Path, but that would be a
breaking change and I assume that Servo uses this API. I would be
happy to update the PR to embed Path in Url if that's what people
wanted.
@bors bors closed this Feb 19, 2014
@bors bors merged commit 4667c49 into rust-lang:master Feb 19, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
…, r=jonas-schievink

fix: fix "X is not a valid punct" panic with floats in macros

Should fix rust-lang/rust-analyzer#12211
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 26, 2024
Add y21 to the review rotation

rust-lang/team#1342

r? `@ghost,` when you're ready to be added to the rotation ``@bors` r+` this `@y21`

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants