mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Add a use case to loop handlers
This commit is contained in:
parent
637a9b3924
commit
c65e3ff20e
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ most known example of such practice is known as long polling.
|
|||
Loop handlers can also be used for requests where a response is
|
||||
partially available and you need to stream the response body
|
||||
while the connection is open. The most known example of such
|
||||
practice is server-sent events.
|
||||
practice is server-sent events, but it also applies to any
|
||||
response that takes a long time to send.
|
||||
|
||||
While the same can be accomplished using plain HTTP handlers,
|
||||
it is recommended to use loop handlers because they are well-tested
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue