public static function RequestFactory::getInstance

Get a cached instance of the default request factory

Return value

RequestFactory

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

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/RequestFactory.php, line 35

Class

RequestFactory
Default HTTP request factory used to create the default {

Namespace

Guzzle\Http\Message

Code

public static function getInstance() {

  // @codeCoverageIgnoreStart
  if (!static::$instance) {
    static::$instance = new static();
  }

  // @codeCoverageIgnoreEnd
  return static::$instance;
}