\Guzzle\Service\Command\LocationVisitor\RequestBodyVisitor

Visitor used to apply a body to a request

This visitor can use a data parameter of 'expect' to control the Expect header. Set the expect data parameter to false to disable the expect header, or set the value to an integer so that the expect 100-continue header is only added if the Content-Length of the entity body is greater than the value.

Summary

Methods
Properties
Constants
after()
visit()
No public properties found
No constants found
prepareValue()
resolveRecursively()
addExpectHeader()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

prepareValue()

prepareValue(mixed  $value, \Guzzle\Service\Description\Parameter  $param) : array|mixed

Prepare (filter and set desired name for request item) the value for request.

Parameters

mixed $value
\Guzzle\Service\Description\Parameter $param

Returns

array|mixed

resolveRecursively()

resolveRecursively(array  $value, \Guzzle\Service\Description\Parameter  $param) : array

Map nested parameters into the location_key based parameters

Parameters

array $value

Value to map

\Guzzle\Service\Description\Parameter $param

Parameter that holds information about the current key

Returns

array —

Returns the mapped array