function Client::invalidBody
Return an InvalidArgumentException with pre-set message.
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 475
Class
- Client
- @final
Namespace
GuzzleHttpCode
private function invalidBody() : InvalidArgumentException {
return new InvalidArgumentException('Passing in the "body" request ' . 'option as an array to send a request is not supported. ' . '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.');
}