Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Client.php

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

GuzzleHttp

Code

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.');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal