\Guzzle\Service\Command\LocationVisitor\RequestHeaderVisitor

Visitor used to apply a parameter to a header value

Summary

Methods
Properties
Constants
after()
visit()
No public properties found
No constants found
prepareValue()
resolveRecursively()
addPrefixedHeaders()
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

addPrefixedHeaders()

addPrefixedHeaders(\Guzzle\Http\Message\RequestInterface  $request, \Guzzle\Service\Description\Parameter  $param, array  $value) 

Add a prefixed array of headers to the request

Parameters

\Guzzle\Http\Message\RequestInterface $request

Request to update

\Guzzle\Service\Description\Parameter $param

Parameter object

array $value

Header array to add

Throws

\Guzzle\Common\Exception\InvalidArgumentException