Sha256: bede30728348c178323867b0a422c10eef3e79926651fe672c7037ba31b2d67a

Contents?: true

Size: 1016 Bytes

Versions: 73

Compression:

Stored size: 1016 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
# http://www.json.org/JSONRequest.html
Mime::Type.register "application/json", :json, %w( text/x-json application/jsonrequest )

Version data entries

73 entries across 70 versions & 14 rubygems

Version Path
actionpack-2.3.18 lib/action_controller/mime_types.rb
actionpack_csi-2.3.5.p8 lib/action_controller/mime_types.rb
actionpack-2.3.17-rack-upgrade-2.3.17 lib/action_controller/mime_types.rb
actionpack-2.3.17 lib/action_controller/mime_types.rb
actionpack_csi-2.3.5.p7 lib/action_controller/mime_types.rb
actionpack_csi-2.3.5.p6 lib/action_controller/mime_types.rb
actionpack-2.3.16 lib/action_controller/mime_types.rb
actionpack-rack-upgrade-2-2.3.16 lib/action_controller/mime_types.rb
actionpack-rack-upgrade-2-2.3.15 lib/action_controller/mime_types.rb
actionpack-2.3.15 lib/action_controller/mime_types.rb
actionpack-rack-upgrade-2.3.16 lib/action_controller/mime_types.rb
actionpack-rack-upgrade-2.3.15 lib/action_controller/mime_types.rb
actionpack-rack-upgrade-2.3.14 lib/action_controller/mime_types.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_types.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/actionpack-2.3.12/lib/action_controller/mime_types.rb
actionpack-2.3.14 lib/action_controller/mime_types.rb
kajam-1.0.3.rc2 vendor/rails/actionpack/lib/action_controller/mime_types.rb
actionpack-2.3.12 lib/action_controller/mime_types.rb
radiant-1.0.0.rc2 vendor/rails/actionpack/lib/action_controller/mime_types.rb
radiant-1.0.0.rc1 vendor/rails/actionpack/lib/action_controller/mime_types.rb