Method: Sinatra::Helpers#headers
- Defined in:
- lib/sinatra/base.rb
#headers(hash = nil) ⇒ Object
Set multiple response headers with Hash.
364 365 366 367 |
# File 'lib/sinatra/base.rb', line 364 def headers(hash = nil) response.headers.merge! hash if hash response.headers end |