D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-ruby27
/
root
/
usr
/
share
/
gems
/
doc
/
rack-2.2.10
/
ri
/
Rack
/
Mime
/
Filename :
cdesc-Mime.ri
back
Copy
U:RDoc::NormalModule[iI" Mime:ETI"Rack::Mime;T0o:RDoc::Markup::Document:@parts[o;;[ : @fileI"lib/rack/mime.rb;T:0@omit_headings_from_table_of_contents_below0; 0; 0[ [U:RDoc::Constant[i I"MIME_TYPES;TI"Rack::Mime::MIME_TYPES;T:public0o;;[o:RDoc::Markup::Paragraph;[I">List of most common mime-types, selected various sources ;TI"Baccording to their usefulness in a webserving scope for Ruby ;TI"users.;To:RDoc::Markup::BlankLine o; ;[I"DTo amend this list with your local mime.types list you can use:;T@o:RDoc::Markup::Verbatim;[I"!require 'webrick/httputils' ;TI"Blist = WEBrick::HTTPUtils.load_mime_types('/etc/mime.types') ;TI")Rack::Mime::MIME_TYPES.merge!(list) ;T:@format0o; ;[I"PN.B. On Ubuntu the mime.types file does not include the leading period, so ;TI"Dusers may need to modify the data before merging into the hash.;T; @ ; 0@ @cRDoc::NormalModule0[ [[I" class;T[[;[[I"match?;TI"lib/rack/mime.rb;T[I"mime_type;T@2[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[[@1@2[@4@2[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@ I" Rack;T@(