Просмотр исходного кода

Add a use case to loop handlers

Loïc Hoguin 6 лет назад
Родитель
Сommit
c65e3ff20e
1 измененных файлов с 2 добавлено и 1 удалено
  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
 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