You are here

private function Client::invalidBody in Lockr 7.3

2 calls to Client::invalidBody()
Client::applyOptions in vendor/guzzlehttp/guzzle/src/Client.php
Applies the array of request options to a request.
Client::requestAsync in vendor/guzzlehttp/guzzle/src/Client.php
Create and send an asynchronous HTTP request.

File

vendor/guzzlehttp/guzzle/src/Client.php, line 414

Class

Client
@method ResponseInterface get(string|UriInterface $uri, array $options = []) @method ResponseInterface head(string|UriInterface $uri, array $options = []) @method ResponseInterface put(string|UriInterface $uri, array $options = []) @method…

Namespace

GuzzleHttp

Code

private function invalidBody() {
  throw new \InvalidArgumentException('Passing in the "body" request ' . 'option as an array to send a POST request has been deprecated. ' . 'Please use the "form_params" request option to send a ' . 'application/x-www-form-urlencoded request, or the "multipart" ' . 'request option to send a multipart/form-data request.');
}