Browse Source

Add a use case to loop handlers

Loïc Hoguin 6 years ago
parent
commit
c65e3ff20e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      doc/src/guide/loop_handlers.asciidoc

+ 2 - 1
doc/src/guide/loop_handlers.asciidoc

@@ -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
 Loop handlers can also be used for requests where a response is
 partially available and you need to stream the response body
 partially available and you need to stream the response body
 while the connection is open. The most known example of such
 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,
 While the same can be accomplished using plain HTTP handlers,
 it is recommended to use loop handlers because they are well-tested
 it is recommended to use loop handlers because they are well-tested