(feature discussion) translate request body values from urlencoded to json and vice versa #7253
peterbsmyth
started this conversation in
Ideas and feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
translate
application/x-www-urlencoded
toapplication/json
and vice versa.I have a use-case for this, where the upstream will only accept
urlencoded
and i have no control over that but i'd like my users to be able to submit injson
I propose adding this to request-transformer, which could be implemented as
config.translate=true
and if the content-type isapplication/json
then its translated tourlencoded
and vice versa. If the content-type ismultipart
then nothing happens.Beta Was this translation helpful? Give feedback.
All reactions