Skip to content

web: Add include_host to RequestHandler.reverse_url - #3917

Open
wozhenbang2004 wants to merge 3 commits into
tornadoweb:masterfrom
wozhenbang2004:feat-reverse-url-include-host-3067
Open

wozhenbang2004 wants to merge 3 commits into
tornadoweb:masterfrom
wozhenbang2004:feat-reverse-url-include-host-3067

Conversation

@wozhenbang2004

Copy link
Copy Markdown

Support self.reverse_url("item", item_id, include_host=True) using the current request's protocol and host, following static_url. The default remains a relative path.

Tests cover HTTP/HTTPS, host ports, bracketed IPv6 hosts and escaped arguments. The API snapshot and typed client check are updated.

The unchanged Test workflow passed all 22 jobs on this branch.

Fixes #3067.

This branch has not been deployed

No deployments
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.

relative URIs in Location header

1 participant