(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.
Added 'scheme' function to simple_bridge's request interface.
Implemented support for 'scheme' in yaws request bridge.
Added 'port' function to simple_bridge's request interface.
RequestBridge:port() returns the local port of the request.
Implemented support for 'port' in yaws request bridge.
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!