Skip to content

Expose HTTP::Request#uri#15816

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
syeopite:expose-internal-http-request-uri-object
May 26, 2025
Merged

Expose HTTP::Request#uri#15816
straight-shoota merged 1 commit intocrystal-lang:masterfrom
syeopite:expose-internal-http-request-uri-object

Conversation

@syeopite
Copy link
Contributor

Follow up to the discussion here #15789 (comment)

There are some scenarios where you'd want the underlying uri object (like reading/changing the fragment component of the request target for a redirect) but this change is mostly just made to allow using HTTP::Server::Response#redirect without the possibility of the uri being double encoded.

@straight-shoota straight-shoota added this to the 1.17.0 milestone May 23, 2025
@straight-shoota straight-shoota merged commit d4088a5 into crystal-lang:master May 26, 2025
52 of 56 checks passed
@straight-shoota straight-shoota changed the title Expose #uri of HTTP::Request Expose HTTP::Request#uri May 26, 2025
@syeopite syeopite deleted the expose-internal-http-request-uri-object branch May 26, 2025 11:51
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.

3 participants