관리-도구
편집 파일: cdesc-Mime.ri
U:RDoc::NormalModule[iI" Mime:EFI"Rack::Mime;F0o: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;FI"Rack::Mime::MIME_TYPES;F00o;;[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@o;;[I"+To add the list mongrel provides, use:;T@o;;[I" require 'mongrel/handlers' ;TI"CRack::Mime::MIME_TYPES.merge!(Mongrel::DirHandler::MIME_TYPES);T;0; @ ; 0@ @cRDoc::NormalModule0[ [[I" class;T[[:public[[I"match?;FI"lib/rack/mime.rb;T[I"mime_type;F@9[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[[@8@9[@;@9[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@ I" Rack;F@/