Server IP : 66.29.132.122 / Your IP : 18.116.23.12 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Mime/ |
Upload File : |
U:RDoc::NormalModule[iI" Mime:EFI"Rack::Mime;F0o:RDoc::Markup::Document:@parts[ : @file0[ [[I"MIME_TYPES;Fo;;[o:RDoc::Markup::Paragraph;[I"=List of most common mime-types, selected various sources;FI"Aaccording to their usefulness in a webserving scope for Ruby;FI"users.;Fo:RDoc::Markup::BlankLine o; ;[I"DTo amend this list with your local mime.types list you can use:;F@o:RDoc::Markup::Verbatim;[I"!require 'webrick/httputils' ;FI"Blist = WEBrick::HTTPUtils.load_mime_types('/etc/mime.types') ;FI")Rack::Mime::MIME_TYPES.merge!(list) ;Fo; ;[I"ON.B. On Ubuntu the mime.types file does not include the leading period, so;FI"Dusers may need to modify the data before merging into the hash.;F@o; ;[I"+To add the list mongrel provides, use:;F@o;;[I" require 'mongrel/handlers' ;FI"CRack::Mime::MIME_TYPES.merge!(Mongrel::DirHandler::MIME_TYPES);F; 0I"lib/rack/mime.rb;F[ [[I" class;F[[:public[[I"match?;F@*[I"mime_type;F@*[:protected[ [:private[ [I" instance;F[[; [ [;[ [;[