WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp\Handler

Proxy::wrapStreaming() public Yoast 1.0

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.

{} Это метод класса: Proxy{}

Хуков нет.

Возвращает

callable. Returns the composed handler.

Использование

$result = Proxy::wrapStreaming( $default, $streaming );
$default(callable) (обязательный)
Handler used for non-streaming responses
$streaming(callable) (обязательный)
Handler used for streaming responses

Код Proxy::wrapStreaming() Yoast 15.6.2

<?php
public static function wrapStreaming(callable $default, callable $streaming)
{
    return function (\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options) use($default, $streaming) {
        return empty($options['stream']) ? $default($request, $options) : $streaming($request, $options);
    };
}