aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/guide/loop_handlers.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/guide/loop_handlers.asciidoc')
-rw-r--r--doc/src/guide/loop_handlers.asciidoc6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/guide/loop_handlers.asciidoc b/doc/src/guide/loop_handlers.asciidoc
index 58c4223..d3655e5 100644
--- a/doc/src/guide/loop_handlers.asciidoc
+++ b/doc/src/guide/loop_handlers.asciidoc
@@ -1,6 +1,8 @@
[[loop_handlers]]
== Loop handlers
+// @todo This description needs to be updated.
+
Loop handlers are a special kind of HTTP handlers used when the
response can not be sent right away. The handler enters instead
a receive loop waiting for the right message before it can send
@@ -64,8 +66,8 @@ message otherwise.
[source,erlang]
----
info({reply, Body}, Req, State) ->
- Req2 = cowboy_req:reply(200, [], Body, Req),
- {stop, Req2, State};
+ cowboy_req:reply(200, [], Body, Req),
+ {stop, Req, State};
info(_Msg, Req, State) ->
{ok, Req, State, hibernate}.
----