Skip to content

Commit

Permalink
Merge pull request erlang#7411 from jchristgit/document-mod-esi-sendi…
Browse files Browse the repository at this point in the history
…ng-status

inets: Document sending status with mod_esi
  • Loading branch information
IngelaAndin authored Aug 3, 2023
2 parents 56a8412 + ec373d4 commit 1e4b006
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/inets/doc/src/mod_esi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@
that is, <c>"\r\n\r\n",</c> the server assumes that no HTTP
header fields will be generated.</p>

<p><c>Env</c> environment data of the request see description above.</p>
<p>To set the response status code, the special <c>status</c> response
header can be sent. For instance, to acknowledge creation of a resource
and annotate the response content type with JSON, one could respond with
the following headers:</p>

<code type="erl">"status: 201 Created\r\n content-type: application/json\r\n\r\n"</code>

<p><c>Env</c> environment data of the request, see description above.</p>

<p><c>Input</c> is query data of a GET request or the body of
a PUT or POST request. The default behavior (legacy reasons)
Expand Down

0 comments on commit 1e4b006

Please sign in to comment.