src/MultiCurlManager.php
protected function hydrateResponseFromCurl(Response $response, Curl $curl)
    {
        $headerSize = $curl->getInfo(CURLINFO_HEADER_SIZE);
        $rawContent = $this->multiCurl->getContent($curl);
        $response->setStatusCode($curl->getInfo(CURLINFO_HTTP_CODE))
                 ->setContent(substr($rawContent, $headerSize));
        $this->parseResponseHeaders($response, substr($rawContent, 0, $headerSize));
        return $this;
    }
protected function hydrateResponseFromCurl(Response $response, Curl $curl)
    {
        $headerSize = $curl->getInfo(CURLINFO_HEADER_SIZE);
        $rawContent = $this->multiCurl->getContent($curl);
        $response->setStatusCode($curl->getInfo(CURLINFO_HTTP_CODE))
                 ->setContent(substr($rawContent, $headerSize));
        $this->parseResponseHeaders($response, substr($rawContent, 0, $headerSize));
        return $this;
    }
protected function hydrateResponseFromCurl ( Response $ response , Curl $ curl ) { $ headerSize = $ curl -> getInfo ( CURLINFO_HEADER_SIZE ) ; $ rawContent = $ this -> multiCurl -> getContent ( $ curl ) ; $ response -> setStatusCode ( $ curl -> getInfo ( CURLINFO_HTTP_CODE ) ) -> setContent ( substr ( $ rawContent , $ headerSize ) ) ; $ this -> parseResponseHeaders ( $ response , substr ( $ rawContent , 0 , $ headerSize ) ) ; return $ this ; }
Hydrates the response from the specified cUrl request.
@param Response $response
@param Curl $curl
@return $this
Hydrates the response from the specified cUrl request .