Follow up to #307 to provide a more robust implementation. Mainly ensuring query params are included in the redirection. Also adds some related utility methods used within the implementation.
Changelog
Add ATH::Request#port
Add ATH::Response#redirect?
Fix query parameters being dropped when redirecting to a trailing/non-trailing slash endpoint
Context
Follow up to #307 to provide a more robust implementation. Mainly ensuring query params are included in the redirection. Also adds some related utility methods used within the implementation.
Changelog
ATH::Request#port
ATH::Response#redirect?