Class: Orbit::Request

Inherits:
Rack::Request
  • Object
show all
Defined in:
lib/orbit/request.rb

Instance Method Summary collapse

Instance Method Details

#headersObject



3
4
5
6
7
8
# File 'lib/orbit/request.rb', line 3

def headers
  @headers ||= @env.select {|key, val| key.start_with? 'HTTP_'}
    .collect {|key, val| [key.sub(/^HTTP_/, ''), val]}
    .collect {|key, val| "#{key}: #{val}<br>"}
    .sort
end