Server IP : 104.21.93.192 / Your IP : 216.73.216.119 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /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[[; [ [;[ [;[