Open Monograph Press
3.3.0
|
Static Public Member Functions | |
static | wrapStreaming (callable $default, callable $streaming) |
static | wrapSync (callable $default, callable $sync) |
|
static |
Sends streaming requests to a streaming compatible handler while sending 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.
callable | $default | Handler used for non-streaming responses |
callable | $streaming | Handler used for streaming responses |
Definition at line 45 of file Proxy.php.
Referenced by GuzzleHttp\choose_handler().
|
static |
Sends synchronous requests to a specific handler while sending all other requests to another handler.
callable | $default | Handler used for normal responses |
callable | $sync | Handler used for synchronous responses. |
Definition at line 21 of file Proxy.php.
References GuzzleHttp\RequestOptions\SYNCHRONOUS.
Referenced by GuzzleHttp\choose_handler().