aboutsummaryrefslogtreecommitdiffstats
path: root/guide/loop_handlers.md
blob: 67f8ec9ff3878edf48ec74cc7a7f1cdf0aec5251 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Loop handlers
=============

Purpose
-------

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
a response.

They are most useful when performing long-polling operations or
when using server-sent events.

Callbacks
---------

@todo Describe the callbacks.

Usage
-----

@todo Explain how to use them.