diff options
author | Loïc Hoguin <[email protected]> | 2017-12-13 17:28:18 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-12-13 17:28:18 +0100 |
commit | 10e70ed2d18e174b57778cc354978dbe742a5320 (patch) | |
tree | f93694db0ab5c664b4511ffaaf9507b8139bf83b /docs/en/cowboy/2.2/manual | |
parent | 73f7713f7138b8e3a80122e6b7d446e8ef3bbb39 (diff) | |
download | ninenines.eu-10e70ed2d18e174b57778cc354978dbe742a5320.tar.gz ninenines.eu-10e70ed2d18e174b57778cc354978dbe742a5320.tar.bz2 ninenines.eu-10e70ed2d18e174b57778cc354978dbe742a5320.zip |
Cowboy 2.2.0
Diffstat (limited to 'docs/en/cowboy/2.2/manual')
-rw-r--r-- | docs/en/cowboy/2.2/manual/cowboy_stream/index.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/en/cowboy/2.2/manual/cowboy_stream/index.html b/docs/en/cowboy/2.2/manual/cowboy_stream/index.html index 639a97fd..1302d76d 100644 --- a/docs/en/cowboy/2.2/manual/cowboy_stream/index.html +++ b/docs/en/cowboy/2.2/manual/cowboy_stream/index.html @@ -148,6 +148,18 @@ from the <code>init/3</code>, <code>data/4</code> and <code>info/3</code> callba the <code>early_error/5</code> callback must return a response command.</p></div> <div class="paragraph"><p>The following commands are defined:</p></div> <div class="sect2"> +<h3 id="inform_command">inform</h3> +<div class="paragraph"><p>Send an informational response to the client.</p></div> +<div class="listingblock"> +<div class="content"><!-- Generator: GNU source-highlight 3.1.8 +by Lorenzo Bettini +http://www.lorenzobettini.it +http://www.gnu.org/software/src-highlite --> +<pre><tt>{<span style="color: #FF6600">inform</span>, <span style="font-weight: bold"><span style="color: #000000">cowboy:http_status</span></span>(), <span style="font-weight: bold"><span style="color: #000000">cowboy:http_headers</span></span>()}</tt></pre></div></div> +<div class="paragraph"><p>Any number of informational responses may be sent, +but only until the final response is sent.</p></div> +</div> +<div class="sect2"> <h3 id="response_command">response</h3> <div class="paragraph"><p>Send a response to the client.</p></div> <div class="listingblock"> @@ -311,6 +323,14 @@ http://www.gnu.org/software/src-highlite --> <div class="paragraph"><p>This is the raw exit message without any modification.</p></div> </div> <div class="sect2"> +<h3 id="_inform">inform</h3> +<div class="paragraph"><p>Same as the <a href="../inform_command">inform command</a>.</p></div> +<div class="paragraph"><p>Sent when the request process reads the body and an +expect: 100-continue header was present in the request, +or when the request process sends an informational +response on its own.</p></div> +</div> +<div class="sect2"> <h3 id="_response">response</h3> <div class="paragraph"><p>Same as the <a href="../response_command">response command</a>.</p></div> <div class="paragraph"><p>Usually sent when the request process replies to the client. |