Sets the mime types and outgoing headers to their original states
Source Code
# File merb/mixins/responder.rb, line 69 def reset_default_mime_types! available_mime_types.clear response_headers.clear Merb.add_mime_type(:all,nil,%w[*/*]) Merb.add_mime_type(:yaml,:to_yaml,%w[application/x-yaml text/yaml]) Merb.add_mime_type(:text,:to_text,%w[text/plain]) Merb.add_mime_type(:html,nil,%w[text/html application/xhtml+xml application/html]) Merb.add_mime_type(:xml,:to_xml,%w[application/xml text/xml application/x-xml], :Encoding => "UTF-8") Merb.add_mime_type(:js,:to_json,%w[ text/javascript application/javascript application/x-javascript]) Merb.add_mime_type(:json,:to_json,%w[application/json text/x-json ]) end
<code/>and<pre/>for code samples.