Skip to content

More tools for manipulating urls#614

Merged
hadley merged 4 commits into
mainfrom
query-manip
Jan 6, 2025
Merged

More tools for manipulating urls#614
hadley merged 4 commits into
mainfrom
query-manip

Conversation

@hadley
Copy link
Copy Markdown
Member

@hadley hadley commented Dec 24, 2024

Fixes #425

@jonthegeek
Copy link
Copy Markdown
Contributor

How would you feel about url_modify_path() (or maybe url_modify_path_append()) along these same lines? I know you can do it with the existing tools, but something equivalent to req_url_path_append() but for urls themselves is handy to (for example) avoid duplicate /'s in the same sorts of situations where you'd use these other url modify tools.

@hadley
Copy link
Copy Markdown
Member Author

hadley commented Dec 24, 2024

@jonthegeek hmmmm I think I'd prefer url_modify_relative() now that we have more relative path handling tools. That feels a bit more general to me.

@jonthegeek
Copy link
Copy Markdown
Contributor

@jonthegeek hmmmm I think I'd prefer url_modify_relative() now that we have more relative path handling tools. That feels a bit more general to me.

That makes sense!

@hadley hadley changed the title Provide tools for manipulating query parameters Provide tools for manipulating urls Jan 6, 2025
@hadley hadley changed the title Provide tools for manipulating urls More tools for manipulating urls Jan 6, 2025
@hadley hadley merged commit f9bc4c9 into main Jan 6, 2025
@hadley hadley deleted the query-manip branch January 6, 2025 18:40
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.

Export query_build and query_parse.

2 participants