Class Guzzle\Service\Command\LocationVisitor\Request\HeaderVisitor

InheritanceGuzzle\Service\Command\LocationVisitor\Request\HeaderVisitor » Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor
ImplementsGuzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface

Visitor used to apply a parameter to a header value

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
addPrefixedHeaders() Add a prefixed array of headers to the request Guzzle\Service\Command\LocationVisitor\Request\HeaderVisitor
prepareValue() Prepare (filter and set desired name for request item) the value for request. Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor
resolveRecursively() Map nested parameters into the location_key based parameters Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor

Method Details

addPrefixedHeaders() protected method

Add a prefixed array of headers to the request

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

Request to update

$param Guzzle\Service\Description\Parameter

Parameter object

$value array

Header array to add

throws Guzzle\Common\Exception\InvalidArgumentException
visit() public method

public void visit ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request, Guzzle\Service\Description\Parameter $param, $value )
$command
$request
$param
$value