$locationName
$locationName : string
Creates a JSON document
$locationName : string
$jsonContentType : string
$jsonData : array
__construct(string $locationName = 'json', string $contentType = 'application/json') : mixed
Set the name of the location
string | $locationName | Name of the location |
string | $contentType | Content-Type header to add to the request if JSON is added to the body. Pass an empty string to omit. |
visit(\GuzzleHttp\Command\CommandInterface $command, \Psr\Http\Message\RequestInterface $request, \GuzzleHttp\Command\Guzzle\Parameter $param) : \Psr\Http\Message\RequestInterface
Visits a location for each top-level parameter
\GuzzleHttp\Command\CommandInterface | $command | |
\Psr\Http\Message\RequestInterface | $request | |
\GuzzleHttp\Command\Guzzle\Parameter | $param |
after(\GuzzleHttp\Command\CommandInterface $command, \Psr\Http\Message\RequestInterface $request, \GuzzleHttp\Command\Guzzle\Operation $operation) : \Psr\Http\Message\MessageInterface
Called when all of the parameters of a command have been visited.
\GuzzleHttp\Command\CommandInterface | $command | |
\Psr\Http\Message\RequestInterface | $request | |
\GuzzleHttp\Command\Guzzle\Operation | $operation |
resolveRecursively(array $value, \GuzzleHttp\Command\Guzzle\Parameter $param) : array
Recursively prepare and filter nested values.
array | $value | Value to map |
\GuzzleHttp\Command\Guzzle\Parameter | $param | Parameter related to the current key. |
Returns the mapped array
Loading…