simple_bridge
simple_bridge copied to clipboard
Interface to get scheme used in request
trafficstars
(copied from previous pull request)
It could be useful to know whether for example https or http (or any other protocol) were used in the request to nitrogen. To know this, there needs to be an interface for this in simple_bridge. This commit contains a proposed interface, and an implementation in yaws. If interested, I could help out in implementing support in the other bridge implementations as well.
It is my intention to re-introduce SSL to simple_bridge 2.0, and then will re-add the scheme() to finally make this pull request be resolved.
Let's hear it for 4-year-old pull requests!