forked from soveran/cuba
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80dcde9
commit b26f2f7
Showing
22 changed files
with
487 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html lang='en'> | ||
<head> | ||
<title>Roda::RodaPlugins::AssumeSSL</title> | ||
<meta name='viewport' content='width=device-width, initial-scale=1'> | ||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'> | ||
<link href='../../../css/style.css' media='screen' rel='stylesheet' type='text/css'> | ||
<script type='text/javascript'> | ||
function popupCode(url) { | ||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") | ||
} | ||
|
||
function toggleCode(id) { | ||
var code = document.getElementById(id) | ||
|
||
code.style.display = code.style.display != 'block' ? 'block' : 'none' | ||
return true | ||
} | ||
|
||
// Make codeblocks hidden by default | ||
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>') | ||
</script> | ||
</head> | ||
<body class='page'> | ||
<div class='class' id='wrapper'> | ||
<div class='header'> | ||
<h1 class='name'><span class='type'>module</span> | ||
Roda::RodaPlugins::AssumeSSL | ||
</h1> | ||
<ol class='paths'> | ||
<li> | ||
<a href="../../../files/lib/roda/plugins/assume_ssl_rb.html">lib/roda/plugins/assume_ssl.rb</a> | ||
</li> | ||
</ol> | ||
</div> | ||
<div id='content'> | ||
<div id='text'> | ||
<div id='description'> | ||
<p>The assume_ssl plugin makes the request ssl? method always return true. This is useful when using an SSL-terminating reverse proxy that doesn’t set the X-Forwarded-Proto or similar header to notify Rack that it is forwarding an SSL request.</p> | ||
|
||
<p>The sessions and sinatra_helpers plugins that ship with <a href="../../Roda.html"><code>Roda</code></a> both use the ssl? method internally and can be affected by use of the plugin. It’s recommended that you use this plugin if you are using either plugin and an SSL-terminating proxy as described above.</p> | ||
|
||
<pre class="ruby"><span class="ruby-identifier">plugin</span> <span class="ruby-value">:assume_ssl</span> | ||
</pre> | ||
</div> | ||
<div id='context'> | ||
</div> | ||
<div id='class-list'> | ||
<h2>Classes and Modules</h2> | ||
<ol> | ||
<li><a href="AssumeSSL/RequestMethods.html">Roda::RodaPlugins::AssumeSSL::RequestMethods</a></li> | ||
</ol> | ||
</div> | ||
<div id='section'> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id='footer-push'></div> | ||
</div> | ||
<div id='footer'> | ||
<a href="https://github.com/jeremyevans/hanna"><strong>Hanna</strong> RDoc template</a> | ||
</div> | ||
</body> | ||
</html> |
84 changes: 84 additions & 0 deletions
84
rdoc/classes/Roda/RodaPlugins/AssumeSSL/RequestMethods.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html lang='en'> | ||
<head> | ||
<title>Roda::RodaPlugins::AssumeSSL::RequestMethods</title> | ||
<meta name='viewport' content='width=device-width, initial-scale=1'> | ||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'> | ||
<link href='../../../../css/style.css' media='screen' rel='stylesheet' type='text/css'> | ||
<script type='text/javascript'> | ||
function popupCode(url) { | ||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") | ||
} | ||
|
||
function toggleCode(id) { | ||
var code = document.getElementById(id) | ||
|
||
code.style.display = code.style.display != 'block' ? 'block' : 'none' | ||
return true | ||
} | ||
|
||
// Make codeblocks hidden by default | ||
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>') | ||
</script> | ||
</head> | ||
<body class='page'> | ||
<div class='class' id='wrapper'> | ||
<div class='header'> | ||
<h1 class='name'><span class='type'>module</span> | ||
Roda::RodaPlugins::AssumeSSL::RequestMethods | ||
</h1> | ||
<ol class='paths'> | ||
<li> | ||
<a href="../../../../files/lib/roda/plugins/assume_ssl_rb.html">lib/roda/plugins/assume_ssl.rb</a> | ||
</li> | ||
</ol> | ||
</div> | ||
<div id='content'> | ||
<div id='text'> | ||
<div id='description'></div> | ||
<div id='method-list'> | ||
<h2>Methods</h2> | ||
<h3>Public Instance</h3> | ||
<ol> | ||
<li><a href="#method-i-ssl-3F">ssl?</a></li> | ||
</ol> | ||
</div> | ||
<div id='context'> | ||
</div> | ||
<div id='section'> | ||
<div id='methods'> | ||
<h2>Public Instance methods</h2> | ||
<div class='method public-instance' id='method-method-i-ssl-3F'> | ||
<a name='method-i-ssl-3F'></a> | ||
<div class='synopsis'> | ||
<span class='name'>ssl?</span><span class='arguments'>()</span> | ||
|
||
</div> | ||
<div class='description'> | ||
|
||
<p>Assume all requests are protected by SSL.</p> | ||
|
||
</div> | ||
<div class='source'> | ||
<a class='source-toggle' href='#' onclick='toggleCode('method-i-ssl-3F-source'); return false'> | ||
[show source] | ||
</a> | ||
<pre id='method-i-ssl-3F-source'> <span class="ruby-comment"># File lib/roda/plugins/assume_ssl.rb</span> | ||
<span class="line-num">20</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">ssl?</span> | ||
<span class="line-num">21</span> <span class="ruby-keyword">true</span> | ||
<span class="line-num">22</span> <span class="ruby-keyword">end</span></pre> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id='footer-push'></div> | ||
</div> | ||
<div id='footer'> | ||
<a href="https://github.com/jeremyevans/hanna"><strong>Hanna</strong> RDoc template</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.