How can I set proxy_http_version dynamically per upstream request? #7330
Replies: 5 comments 1 reply
-
@mssaisandeep, so you basically want to proxy with |
Beta Was this translation helpful? Give feedback.
-
@bungle Yes, I want to set it to http1.0 to the upstream request dynamically. Do you need more information? |
Beta Was this translation helpful? Give feedback.
-
@mssaisandeep no, I have all the information. I can propose a feature, but I don't want to guarantee that it gets approved/merged. We'll see how it goes. |
Beta Was this translation helpful? Give feedback.
-
Thank you @bungle. FYI, I have been using kong as a gateway/proxy for the last 2 years for all kinds of applications (HTTPs/RDP/SSH). I solved various use cases to support legacy as well as other different kinds of HTTP(s) applications behind kong. If you need it, I can pick the best one out of that list (which I added support using plugins). That may be helpful and maybe you can add direct support in the kong itself. |
Beta Was this translation helpful? Give feedback.
-
any solution for this? @mssaisandeep @Sam123ben |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Requirement: Before upstreaming the request, I would like to change the http request protocol version. I couldn't find any API's (kong/nginx) to set the proxy_http_version. I also tried adding content_by_lua_block as mentioned in this link: https://stackoverflow.com/questions/64301671/how-to-set-proxy-http-version-in-lua-code-before-upstreaming-the-request-in-ngin. But content_by_lua_block is not even getting executed.
Please help me if there is any way that we can acheive this. Let me know if you need more information.
@thibaultcha @bungle
Beta Was this translation helpful? Give feedback.
All reactions