public function Client::setRequestFactory

Set the request factory to use with the client when creating requests

Parameters

RequestFactoryInterface $factory Request factory:

Return value

ClientInterface

Overrides ClientInterface::setRequestFactory

1 call to Client::setRequestFactory()
Client::__construct in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Client constructor

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php, line 405

Class

Client
HTTP client

Namespace

Guzzle\Http

Code

public function setRequestFactory(RequestFactoryInterface $factory) {
  $this->requestFactory = $factory;
  return $this;
}