public function ClientInterface::createRequest

Create and return a new { Use an absolute path to override the base path of the client, or a relative path to append to the base path of the client. The URI can contain the query string as well. Use an array to provide a URI template and additional variables to use in the URI template expansion.

Parameters

string $method HTTP method. Defaults to GET:

string|array $uri Resource URI.:

array|Collection $headers HTTP headers:

string|resource|array|EntityBodyInterface $body Entity body of request (POST/PUT) or response (GET):

Return value

RequestInterface

Throws

InvalidArgumentException if a URI array is passed that does not contain exactly two elements: the URI followed by template variables

See also

RequestInterface} configured for the client.

1 method overrides ClientInterface::createRequest()
Client::createRequest in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Create and return a new { Use an absolute path to override the base path of the client, or a relative path to append to the base path of the client. The URI can contain the query string as well. Use an array to provide a URI template and…

File

drupal/core/vendor/guzzle/http/Guzzle/Http/ClientInterface.php, line 121

Class

ClientInterface
Client interface for send HTTP requests

Namespace

Guzzle\Http

Code

public function createRequest($method = RequestInterface::GET, $uri = null, $headers = null, $body = null);