Open dallen66 opened 3 years ago
You should be able to create a connector that sets proxy
, and that will tell hyper to write the request in absolute form.
For regular http:// url it will process it in absolute form but for https:// it default to origin form. I need a way to override it to absolute form. https://github.com/hyperium/hyper/blob/7f69d8f94ccf258190f40585cd668e986b0829e4/src/client/client.rs#L1252 https://github.com/hyperium/hyper/blob/7f69d8f94ccf258190f40585cd668e986b0829e4/src/client/client.rs#L753 Thank for your help.
Yes I know it is for security reason. But I am write a sandbox where request will proxy though Unix socket, then the request will be encrypted outside the sandbox.
I can create a pull request to enable the ability.
The API can be something like this