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
<code/>and<pre/>for code samples.