summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/en/cowboy/2.0/guide/cowboy.sty8
-rw-r--r--docs/en/cowboy/2.0/guide/flow_diagram.asciidoc1
-rw-r--r--docs/en/cowboy/2.0/guide/req.asciidoc8
-rw-r--r--docs/en/cowboy/2.0/guide/req/index.html9
4 files changed, 13 insertions, 13 deletions
diff --git a/docs/en/cowboy/2.0/guide/cowboy.sty b/docs/en/cowboy/2.0/guide/cowboy.sty
new file mode 100644
index 00000000..d5e0d3be
--- /dev/null
+++ b/docs/en/cowboy/2.0/guide/cowboy.sty
@@ -0,0 +1,8 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{asciidoc-dblatex}[2012/10/24 AsciiDoc DocBook Style]
+
+%% Just use the original package and pass the options.
+\RequirePackageWithOptions{docbook}
+
+%% Define an alias for make snippets to be compatible with source-highlighter.
+\lstalias{makefile}{make}
diff --git a/docs/en/cowboy/2.0/guide/flow_diagram.asciidoc b/docs/en/cowboy/2.0/guide/flow_diagram.asciidoc
index 93e9051d..10954040 100644
--- a/docs/en/cowboy/2.0/guide/flow_diagram.asciidoc
+++ b/docs/en/cowboy/2.0/guide/flow_diagram.asciidoc
@@ -1,3 +1,4 @@
+[[flow_diagram]]
== Flow diagram
Placeholder chapter.
diff --git a/docs/en/cowboy/2.0/guide/req.asciidoc b/docs/en/cowboy/2.0/guide/req.asciidoc
index 39cd1b64..5bd6701c 100644
--- a/docs/en/cowboy/2.0/guide/req.asciidoc
+++ b/docs/en/cowboy/2.0/guide/req.asciidoc
@@ -1,7 +1,3 @@
-+++
-title = "The Req object"
-+++
-
[[req]]
== The Req object
@@ -160,8 +156,8 @@ The scheme and host are lowercased case insensitive binary
strings. The port is an integer representing the port number.
The path and query string are case sensitive binary strings.
-Cowboy defines only the <<"http">> and <<"https">> schemes.
-They are chosen so that the scheme will only be <<"https">>
+Cowboy defines only the `<<"http">>` and `<<"https">>` schemes.
+They are chosen so that the scheme will only be `<<"https">>`
for requests on secure HTTP/1.1 or HTTP/2 connections.
// @todo Is that tested well?
diff --git a/docs/en/cowboy/2.0/guide/req/index.html b/docs/en/cowboy/2.0/guide/req/index.html
index 15c08a98..13cf97d5 100644
--- a/docs/en/cowboy/2.0/guide/req/index.html
+++ b/docs/en/cowboy/2.0/guide/req/index.html
@@ -69,9 +69,6 @@
<h1 class="lined-header"><span>The Req object</span></h1>
-<div class="sect1">
-<h2 id="req">The Req object</h2>
-<div class="sectionbody">
<div class="paragraph"><p>The Req object is a variable used for obtaining information
about a request, read its body or send a response.</p></div>
<div class="paragraph"><p>It is not really an object in the object-oriented sense.
@@ -80,8 +77,6 @@ used when calling functions from the <code>cowboy_req</code> module.</p></div>
<div class="paragraph"><p>The Req object is the subject of a few different chapters.
In this chapter we will learn about the Req object and
look at how to retrieve information about the request.</p></div>
-</div>
-</div>
<div class="sect1">
<h2 id="_direct_access">Direct access</h2>
<div class="sectionbody">
@@ -230,8 +225,8 @@ http://www.gnu.org/software/src-highlite -->
<div class="paragraph"><p>The scheme and host are lowercased case insensitive binary
strings. The port is an integer representing the port number.
The path and query string are case sensitive binary strings.</p></div>
-<div class="paragraph"><p>Cowboy defines only the <a href="#http">[http]</a> and <a href="#https">[https]</a> schemes.
-They are chosen so that the scheme will only be <a href="#https">[https]</a>
+<div class="paragraph"><p>Cowboy defines only the <code>&lt;&lt;"http"&gt;&gt;</code> and <code>&lt;&lt;"https"&gt;&gt;</code> schemes.
+They are chosen so that the scheme will only be <code>&lt;&lt;"https"&gt;&gt;</code>
for requests on secure HTTP/1.1 or HTTP/2 connections.</p></div>
<div class="paragraph"><p>The effective request URI itself can be reconstructed with
the <code>cowboy_req:uri/1,2</code> function. By default, an absolute