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

feat: add method opt to overwrite http method #322

Merged
merged 2 commits into from
Jun 18, 2023
Merged

feat: add method opt to overwrite http method #322

merged 2 commits into from
Jun 18, 2023

Conversation

psteinroe
Copy link
Contributor

@psteinroe psteinroe commented Jun 15, 2023

adds a method opt to overwrite the http method of the request that is being sent to the target.

use case is that the target may only support a POST request, for example because it does not confirm to certain standards, but the proxy should expose the same endpoint as PATCH. with the method parameter set to POST, the incoming PATCH request is forwarded as POST.

Checklist

@psteinroe psteinroe requested a review from mcollina June 16, 2023 14:50
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@psteinroe
Copy link
Contributor Author

lgtm

Thanks! Anything left to do so this can be merged and released?

@mcollina mcollina merged commit dcb8179 into fastify:master Jun 18, 2023
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.

2 participants