[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 58 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Middleware:: (2 methods):
wrapFuture()
wrapStreaming()
Class: Middleware - X-Ref
Provides basic middleware wrappers.wrapFuture(callable $default,callable $future) X-Ref |
Sends future requests to a future compatible handler while sending all other requests to a default handler. When the "future" option is not provided on a request, any future responses are automatically converted to synchronous responses and block. param: callable $default Handler used for non-streaming responses param: callable $future Handler used for future responses return: callable Returns the composed handler. |
wrapStreaming(callable $default,callable $streaming) X-Ref |
Sends streaming requests to a streaming compatible handler while sendin all other requests to a default handler. This, for example, could be useful for taking advantage of the performance benefits of curl while still supporting true streaming through the StreamHandler. param: callable $default Handler used for non-streaming responses param: callable $streaming Handler used for streaming responses return: callable Returns the composed handler. |
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |