public function Client::put

Create a PUT request for the client

Parameters

string|array $uri Resource URI:

array|Collection $headers HTTP headers:

string|resource|EntityBodyInterface $body Body to send in the request:

Return value

EntityEnclosingRequestInterface

Overrides ClientInterface::put

See also

Guzzle\Http\ClientInterface::createRequest()

File

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

Class

Client
HTTP client

Namespace

Guzzle\Http

Code

public function put($uri = null, $headers = null, $body = null) {
  return $this
    ->createRequest('PUT', $uri, $headers, $body);
}