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">
2
2
< html > < body >
3
3
4
4
< 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>
323
323
324
324
< p > Note that the public directory name is not included in the URL. A file
325
325
< 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 >
327
327
328
328
< p > Use the < code > :static_cache_control</ code > setting (see < a href ="#cache-control "> below</ a > ) to add
329
329
< code > Cache-Control</ code > header info.</ p >
@@ -474,7 +474,7 @@ <h4 id="haml-templates">Haml Templates</h4>
474
474
< table >
475
475
< tr >
476
476
< 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 >
478
478
</ tr >
479
479
< tr >
480
480
< td > File Extension</ td >
@@ -533,7 +533,7 @@ <h4 id="nokogiri-templates">Nokogiri Templates</h4>
533
533
< table >
534
534
< tr >
535
535
< 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 >
537
537
</ tr >
538
538
< tr >
539
539
< td > File Extension</ td >
@@ -616,7 +616,7 @@ <h4 id="rdoc-templates">RDoc Templates</h4>
616
616
< table >
617
617
< tr >
618
618
< 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 >
620
620
</ tr >
621
621
< tr >
622
622
< td > File Extension</ td >
@@ -649,7 +649,7 @@ <h4 id="asciidoc-templates">AsciiDoc Templates</h4>
649
649
< table >
650
650
< tr >
651
651
< 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 >
653
653
</ tr >
654
654
< tr >
655
655
< td > File Extension</ td >
@@ -1382,7 +1382,7 @@ <h3 id="browser-redirect">Browser Redirect</h3>
1382
1382
< p > Any additional parameters are handled like arguments passed to < code > halt</ code > :</ p >
1383
1383
1384
1384
< 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 >
1386
1386
</ code > </ pre > </ div > </ div >
1387
1387
1388
1388
< 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>
1554
1554
< p > The incoming request object can be accessed from request level (filter,
1555
1555
routes, error handlers) through the < code > request</ code > method:</ p >
1556
1556
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 >
1558
1558
< span class ="n "> get</ span > < span class ="s1 "> '/foo'</ span > < span class ="k "> do</ span >
1559
1559
< span class ="n "> t</ span > < span class ="o "> =</ span > < span class ="sx "> %w[text/css text/html application/javascript]</ span >
1560
1560
< 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>
1577
1577
< 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 >
1578
1578
< span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> cookies</ span > < span class ="c1 "> # hash of browser cookies</ span >
1579
1579
< 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 >
1581
1581
< span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> path</ span > < span class ="c1 "> # "/example/foo"</ span >
1582
1582
< span class ="n "> request</ span > < span class ="p "> .</ span > < span class ="nf "> ip</ span > < span class ="c1 "> # client IP address</ span >
1583
1583
< 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
2216
2216
</ ul >
2217
2217
2218
2218
< 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
2220
2220
Settings</ a > for details on
2221
2221
available options and their behavior. If you want behavior more similar
2222
2222
to when you define your app at the top level (also known as Classic
@@ -2701,7 +2701,7 @@ <h2 id="further-reading">Further Reading</h2>
2701
2701
< li >
2702
2702
< a href ="https://github.com/sinatra/sinatra-book "> Sinatra Book</ a > - Cookbook Tutorial</ li >
2703
2703
< 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
2705
2705
recipes</ li >
2706
2706
< li > API documentation for the < a href ="https://www.rubydoc.info/gems/sinatra "> latest release</ a >
2707
2707
or the < a href ="https://www.rubydoc.info/github/sinatra/sinatra "> current HEAD</ a > on
0 commit comments