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

YoastSEO_Vendor\GuzzleHttp\Handler

StreamHandler::createResponse() private Yoast 1.0

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

Хуков нет.

Возвращает

null. Ничего.

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

// private - только в коде основоного (родительского) класса
$result = $this->createResponse( $request, $options, $stream, $startTime );
$request(YoastSEO_Vendor\Psr\Http\Message\RequestInterface) (обязательный)
-
$options(массив) (обязательный)
-
$stream (обязательный)
-
$startTime (обязательный)
-

Код StreamHandler::createResponse() Yoast 17.1

private function createResponse(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options, $stream, $startTime)
{
    $hdrs = $this->lastHeaders;
    $this->lastHeaders = [];
    $parts = \explode(' ', \array_shift($hdrs), 3);
    $ver = \explode('/', $parts[0])[1];
    $status = $parts[1];
    $reason = isset($parts[2]) ? $parts[2] : null;
    $headers = \YoastSEO_Vendor\GuzzleHttp\headers_from_lines($hdrs);
    list($stream, $headers) = $this->checkDecode($options, $headers, $stream);
    $stream = \YoastSEO_Vendor\GuzzleHttp\Psr7\stream_for($stream);
    $sink = $stream;
    if (\strcasecmp('HEAD', $request->getMethod())) {
        $sink = $this->createSink($stream, $options);
    }
    $response = new \YoastSEO_Vendor\GuzzleHttp\Psr7\Response($status, $headers, $sink, $ver, $reason);
    if (isset($options['on_headers'])) {
        try {
            $options['on_headers']($response);
        } catch (\Exception $e) {
            $msg = 'An error was encountered during the on_headers event';
            $ex = new \YoastSEO_Vendor\GuzzleHttp\Exception\RequestException($msg, $request, $response, $e);
            return \YoastSEO_Vendor\GuzzleHttp\Promise\rejection_for($ex);
        }
    }
    // Do not drain when the request is a HEAD request because they have
    // no body.
    if ($sink !== $stream) {
        $this->drain($stream, $sink, $response->getHeaderLine('Content-Length'));
    }
    $this->invokeStats($options, $request, $startTime, $response, null);
    return new \YoastSEO_Vendor\GuzzleHttp\Promise\FulfilledPromise($response);
}