PushedResponse example



        if ($maxPendingPushes <= \count($this->pushedResponses)) {
            $fifoUrl = key($this->pushedResponses);
            unset($this->pushedResponses[$fifoUrl]);
            $this->logger?->debug(sprintf('Evicting oldest pushed response: "%s"', $fifoUrl));
        }

        $url .= $headers[':path'][0];
        $this->logger?->debug(sprintf('Queueing pushed response: "%s"', $url));

        $this->pushedResponses[$url] = new PushedResponse(new CurlResponse($this$pushed)$headers$this->openHandles[(int) $parent][1] ?? []$pushed);

        return \CURL_PUSH_OK;
    }
}
Home | Imprint | This part of the site doesn't use cookies.