static public Method

Merb.add_response_headers!(key, values = {})

Adds outgoing headers to a mime type. This can be done with the Merb.add_mime_type method or directly here.

Example

{{[

Merb.outgoing_headers!(:xml => { :Encoding => "UTF-8" })

]}}

This method is destructive on any already defined outgoing headers

Source Code

# File merb/mixins/responder.rb, line 53
def add_response_headers!(key, values = {})
  raise ArgumentError unless key.is_a?(Symbol) && values.is_a?(Hash)
  response_headers[key] = values
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.