Method: Gin::Controller#headers
- Defined in:
- lib/gin/controller.rb
#headers(hash = nil) ⇒ Object
Set multiple response headers with Hash.
397 398 399 400 |
# File 'lib/gin/controller.rb', line 397 def headers hash=nil @response.headers.merge! hash if hash @response.headers end |