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

reverseproxy: Move status replacement intercept to replace_status #4300

Merged
merged 1 commit into from Mar 1, 2022

Conversation

francislavoie
Copy link
Member

I was doing some thinking in #4298 (comment) and I think the UX of handle_response is super awkward in that it was doing two different things in one subdirective.

Semantically, it's expected that the handle family of options imply that subroutes will be defined (as per handle and handle_path directives).

Separating the status code replacement usecase into its own Caddyfile subdirective (even if it doesn't match the JSON 1:1) is easier to understand.

This is a breaking change, so we could defer this to v2.5.0, but I don't think many people use this yet so the impact should be very low. I haven't seen anyone on the forums asking questions using this feature yet since we released it in v2.4.0.

@francislavoie francislavoie added the under review 🧐 Review is pending before merging label Aug 22, 2021
@francislavoie francislavoie added this to the v2.4.4 milestone Aug 22, 2021
@francislavoie francislavoie force-pushed the caddyfile-replace-status branch 3 times, most recently from fc4b1d9 to 5cfac4e Compare August 28, 2021 10:38
@caddyserver caddyserver deleted a comment Aug 29, 2021
@francislavoie francislavoie force-pushed the caddyfile-replace-status branch 2 times, most recently from 5012ddd to ca75021 Compare August 29, 2021 17:45
@mholt mholt modified the milestones: v2.4.4, v2.5.0 Aug 29, 2021
@francislavoie francislavoie added the feature ⚙️ New feature or request label Oct 20, 2021
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it took me so long to get to this. I agree this is probably better; thank you!

@mholt mholt removed the under review 🧐 Review is pending before merging label Mar 1, 2022
@mholt mholt merged commit 87a1f22 into master Mar 1, 2022
@mholt mholt deleted the caddyfile-replace-status branch March 1, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants