You are here

protected function Client::createResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/fabpot/goutte/Goutte/Client.php \Goutte\Client::createResponse()
1 call to Client::createResponse()
Client::doRequest in vendor/fabpot/goutte/Goutte/Client.php

File

vendor/fabpot/goutte/Goutte/Client.php, line 204

Class

Client
Client.

Namespace

Goutte

Code

protected function createResponse(ResponseInterface $response) {
  return new Response((string) $response
    ->getBody(), $response
    ->getStatusCode(), $response
    ->getHeaders());
}