$12 GRAYBYTE WORDPRESS FILE MANAGER $64

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/rdoc/classes/Rack/Static.src/

HOME
Current File : /opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/rdoc/classes/Rack/Static.src//M000401.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>new (Rack::Static)</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/static.rb, line 83</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">app</span>, <span class="ruby-identifier">options</span>={})
      <span class="ruby-ivar">@app</span> = <span class="ruby-identifier">app</span>
      <span class="ruby-ivar">@urls</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:urls</span>] <span class="ruby-operator">||</span> [<span class="ruby-value str">&quot;/favicon.ico&quot;</span>]
      <span class="ruby-ivar">@index</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>]
      <span class="ruby-identifier">root</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:root</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>

      <span class="ruby-comment cmt"># HTTP Headers</span>
      <span class="ruby-ivar">@header_rules</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:header_rules</span>] <span class="ruby-operator">||</span> []
      <span class="ruby-comment cmt"># Allow for legacy :cache_control option while prioritizing global header_rules setting</span>
      <span class="ruby-ivar">@header_rules</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>, [<span class="ruby-identifier">:all</span>, {<span class="ruby-value str">'Cache-Control'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:cache_control</span>]}]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:cache_control</span>]

      <span class="ruby-ivar">@file_server</span> = <span class="ruby-constant">Rack</span><span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">root</span>)
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / root
0755
M000401.html
2.561 KB
5 Dec 2019 10.14 PM
root / root
0644
M000402.html
1.255 KB
5 Dec 2019 10.14 PM
root / root
0644
M000403.html
1.268 KB
5 Dec 2019 10.14 PM
root / root
0644
M000404.html
0.937 KB
5 Dec 2019 10.14 PM
root / root
0644
M000405.html
3.11 KB
5 Dec 2019 10.14 PM
root / root
0644
M000406.html
2.899 KB
5 Dec 2019 10.14 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF