1- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http ://www.w3.org/TR/REC-html40/loose.dtd">
1+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "https ://www.w3.org/TR/REC-html40/loose.dtd">
22< html > < body >
33
44< p > < a href ="https://badge.fury.io/rb/sinatra "> < img src ="https://badge.fury.io/rb/sinatra.svg " alt ="Gem Version "> </ a >
@@ -323,7 +323,7 @@ <h2 id="static-files">Static Files</h2>
323323
324324< p > Note that the public directory name is not included in the URL. A file
325325< code > ./public/css/style.css</ code > is made available as
326- < code > http ://example.com/css/style.css</ code > .</ p >
326+ < code > https ://example.com/css/style.css</ code > .</ p >
327327
328328< p > Use the < code > :static_cache_control</ code > setting (see < a href ="#cache-control "> below</ a > ) to add
329329< code > Cache-Control</ code > header info.</ p >
@@ -474,7 +474,7 @@ <h4 id="haml-templates">Haml Templates</h4>
474474< table >
475475 < tr >
476476 < td > Dependency</ td >
477- < td > < a href ="http ://haml.info/ " title ="haml "> haml</ a > </ td >
477+ < td > < a href ="https ://haml.info/ " title ="haml "> haml</ a > </ td >
478478 </ tr >
479479 < tr >
480480 < td > File Extension</ td >
@@ -533,7 +533,7 @@ <h4 id="nokogiri-templates">Nokogiri Templates</h4>
533533< table >
534534 < tr >
535535 < td > Dependency</ td >
536- < td > < a href ="http ://www.nokogiri.org/ " title ="nokogiri "> nokogiri</ a > </ td >
536+ < td > < a href ="https ://www.nokogiri.org/ " title ="nokogiri "> nokogiri</ a > </ td >
537537 </ tr >
538538 < tr >
539539 < td > File Extension</ td >
@@ -616,7 +616,7 @@ <h4 id="rdoc-templates">RDoc Templates</h4>
616616< table >
617617 < tr >
618618 < td > Dependency</ td >
619- < td > < a href ="http ://rdoc.sourceforge.net/ " title ="RDoc "> RDoc</ a > </ td >
619+ < td > < a href ="https ://rdoc.sourceforge.net/ " title ="RDoc "> RDoc</ a > </ td >
620620 </ tr >
621621 < tr >
622622 < td > File Extension</ td >
@@ -649,7 +649,7 @@ <h4 id="asciidoc-templates">AsciiDoc Templates</h4>
649649< table >
650650 < tr >
651651 < td > Dependency</ td >
652- < td > < a href ="http ://asciidoctor.org/ " title ="Asciidoctor "> Asciidoctor</ a > </ td >
652+ < td > < a href ="https ://asciidoctor.org/ " title ="Asciidoctor "> Asciidoctor</ a > </ td >
653653 </ tr >
654654 < tr >
655655 < td > File Extension</ td >
@@ -1382,7 +1382,7 @@ <h3 id="browser-redirect">Browser Redirect</h3>
13821382< p > Any additional parameters are handled like arguments passed to < code > halt</ code > :</ p >
13831383
13841384< div class ="language-ruby highlighter-rouge "> < div class ="highlight "> < pre class ="highlight "> < code > < span class ="n "> redirect</ span > < span class ="n "> to</ span > < span class ="p "> (</ span > < span class ="s1 "> '/bar'</ span > < span class ="p "> ),</ span > < span class ="mi "> 303</ span >
1385- < span class ="n "> redirect</ span > < span class ="s1 "> 'http ://www.google.com/'</ span > < span class ="p "> ,</ span > < span class ="s1 "> 'wrong place, buddy'</ span >
1385+ < span class ="n "> redirect</ span > < span class ="s1 "> 'https ://www.google.com/'</ span > < span class ="p "> ,</ span > < span class ="s1 "> 'wrong place, buddy'</ span >
13861386</ code > </ pre > </ div > </ div >
13871387
13881388< p > You can also easily redirect back to the page the user came from with
@@ -1554,7 +1554,7 @@ <h3 id="accessing-the-request-object">Accessing the Request Object</h3>
15541554< p > The incoming request object can be accessed from request level (filter,
15551555routes, error handlers) through the < code > request</ code > method:</ p >
15561556
1557- < div class ="language-ruby highlighter-rouge "> < div class ="highlight "> < pre class ="highlight "> < code > < span class ="c1 "> # app running on http ://example.com/example</ span >
1557+ < div class ="language-ruby highlighter-rouge "> < div class ="highlight "> < pre class ="highlight "> < code > < span class ="c1 "> # app running on https ://example.com/example</ span >
15581558< span class ="n "> get</ span > < span class ="s1 "> '/foo'</ span > < span class ="k "> do</ span >
15591559 < span class ="n "> t</ span > < span class ="o "> =</ span > < span class ="sx "> %w[text/css text/html application/javascript]</ span >
15601560 < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> accept</ span > < span class ="c1 "> # ['text/html', '*/*']</ span >
@@ -1577,7 +1577,7 @@ <h3 id="accessing-the-request-object">Accessing the Request Object</h3>
15771577 < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> user_agent</ span > < span class ="c1 "> # user agent (used by :agent condition)</ span >
15781578 < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> cookies</ span > < span class ="c1 "> # hash of browser cookies</ span >
15791579 < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> xhr?</ span > < span class ="c1 "> # is this an ajax request?</ span >
1580- < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> url</ span > < span class ="c1 "> # "http ://example.com/example/foo"</ span >
1580+ < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> url</ span > < span class ="c1 "> # "https ://example.com/example/foo"</ span >
15811581 < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> path</ span > < span class ="c1 "> # "/example/foo"</ span >
15821582 < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> ip</ span > < span class ="c1 "> # client IP address</ span >
15831583 < span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> secure?</ span > < span class ="c1 "> # false (would be true over ssl)</ span >
@@ -2216,7 +2216,7 @@ <h2 id="sinatrabase---middleware-libraries-and-modular-apps">Sinatra::Base - Mid
22162216</ ul >
22172217
22182218< p > < code > Sinatra::Base</ code > is a blank slate. Most options are disabled by default,
2219- including the built-in server. See < a href ="http ://www.sinatrarb.com/configuration.html "> Configuring
2219+ including the built-in server. See < a href ="https ://www.sinatrarb.com/configuration.html "> Configuring
22202220Settings</ a > for details on
22212221available options and their behavior. If you want behavior more similar
22222222to when you define your app at the top level (also known as Classic
@@ -2701,7 +2701,7 @@ <h2 id="further-reading">Further Reading</h2>
27012701 < li >
27022702< a href ="https://github.com/sinatra/sinatra-book "> Sinatra Book</ a > - Cookbook Tutorial</ li >
27032703 < li >
2704- < a href ="http ://recipes.sinatrarb.com/ "> Sinatra Recipes</ a > - Community contributed
2704+ < a href ="https ://recipes.sinatrarb.com/ "> Sinatra Recipes</ a > - Community contributed
27052705recipes</ li >
27062706 < li > API documentation for the < a href ="https://www.rubydoc.info/gems/sinatra "> latest release</ a >
27072707or the < a href ="https://www.rubydoc.info/github/sinatra/sinatra "> current HEAD</ a > on
0 commit comments