Sha256: 991f64fcad16f15549b0818eb6d66de9429de36ce304a54bb7a73cb7c3ab6bab

Contents?: true

Size: 954 Bytes

Versions: 69

Compression:

Stored size: 954 Bytes

Contents

# Build list of Mime types for HTTP responses
# http://www.iana.org/assignments/media-types/

Mime::Type.register "*/*", :all
Mime::Type.register "text/plain", :text, [], %w(txt)
Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml )
Mime::Type.register "text/javascript", :js, %w( application/javascript application/x-javascript )
Mime::Type.register "text/css", :css
Mime::Type.register "text/calendar", :ics
Mime::Type.register "text/csv", :csv
Mime::Type.register "application/xml", :xml, %w( text/xml application/x-xml )
Mime::Type.register "application/rss+xml", :rss
Mime::Type.register "application/atom+xml", :atom
Mime::Type.register "application/x-yaml", :yaml, %w( text/yaml )

Mime::Type.register "multipart/form-data", :multipart_form
Mime::Type.register "application/x-www-form-urlencoded", :url_encoded_form

# http://www.ietf.org/rfc/rfc4627.txt
Mime::Type.register "application/json", :json, %w( text/x-json )

Version data entries

69 entries across 69 versions & 4 rubygems

Version Path
backlog-0.9.1 vendor/rails/actionpack/lib/action_controller/mime_types.rb
radiant-0.6.5.1 vendor/rails/actionpack/lib/action_controller/mime_types.rb
radiant-0.6.5 vendor/rails/actionpack/lib/action_controller/mime_types.rb
radiant-0.6.6 vendor/rails/actionpack/lib/action_controller/mime_types.rb
radiant-0.6.7 vendor/rails/actionpack/lib/action_controller/mime_types.rb
radiant-0.6.9 vendor/rails/actionpack/lib/action_controller/mime_types.rb
radiant-0.6.8 vendor/rails/actionpack/lib/action_controller/mime_types.rb
spree-0.0.9 vendor/rails/actionpack/lib/action_controller/mime_types.rb
spree-0.2.0 vendor/rails/actionpack/lib/action_controller/mime_types.rb