PHP 8.2.31
Preview: M000135.html Size: 1.07 KB
/proc/thread-self/root/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/rdoc/classes/Rack/Mime.src/M000135.html

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>mime_type (Rack::Mime)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/rack/mime.rb, line 16</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mime_type</span>(<span class="ruby-identifier">ext</span>, <span class="ruby-identifier">fallback</span>=<span class="ruby-value str">'application/octet-stream'</span>)
      <span class="ruby-constant">MIME_TYPES</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">ext</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>, <span class="ruby-identifier">fallback</span>)
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
1.07 KB lrw-r--r-- 2019-12-05 22:14:04
Edit Download
1.94 KB lrw-r--r-- 2019-12-05 22:14:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).