Method: Nitro::Request#protocol
- Defined in:
- lib/nitro/cgi/request.rb
#protocol ⇒ Object
The request protocol.
34 35 36 |
# File 'lib/nitro/cgi/request.rb', line 34 def protocol @headers['HTTPS'] == 'on' ? 'https://' : 'http://' end |