Skip to content

Combine put and patch routes to the same handler #1806

Answered by jebrosen
3olkin asked this question in Questions
Discussion options

You must be logged in to vote

This is actually one of Rocket's oldest feature ideas! (#2)

But this also looks incorrect in this particular case. PUT and PATCH have different semantics, are not intended for the same use cases, and may be treated differently by browsers and caches. Implementing both to do the same thing seems unnecessary, and could have negative side effects.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@3olkin
Comment options

Answer selected by 3olkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants