NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class AbstractRequestVisitor

Location visitor used to add values to different locations in a request with different behaviors as needed

  Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor implements Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface

### Direct known subclasses

`Aws\Common\Command\AwsQueryVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\BodyVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\HeaderVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\JsonVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\PostFieldVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\PostFileVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\QueryVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor`, `Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor`

Abstract
Namespace: Guzzle\Service\Command\LocationVisitor\Request
Located at Guzzle/Service/Command/LocationVisitor/Request/AbstractRequestVisitor.php

## Methods summary

- `public` `after ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request )`
- `public` `visit ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request, Guzzle\Service\Description\Parameter $param, mixed $value )`
- `protected` `prepareValue ( mixed $value, Guzzle\Service\Description\Parameter $param )`

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

- `protected` `resolveRecursively ( array $value, Guzzle\Service\Description\Parameter $param )`

  Map nested parameters into the location_key based parameters

## Methods detail

# `public`
`after( `Guzzle\Service\Command\CommandInterface` $command, `Guzzle\Http\Message\RequestInterface` $request )`

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command being visited
$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request being visited

#### CodeCoverageIgnore

#### Implementation of

`Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface::after()`
# `public`
`visit( `Guzzle\Service\Command\CommandInterface` $command, `Guzzle\Http\Message\RequestInterface` $request, `Guzzle\Service\Description\Parameter` $param, mixed $value )`

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command being visited
$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request being visited
$param
  ``Guzzle\Service\Description\Parameter``
  $param Parameter being visited
$value
  `mixed`
  $value Value to set

#### CodeCoverageIgnore

#### Implementation of

`Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface::visit()`
# `protected array|mixed`
`prepareValue( mixed $value, `Guzzle\Service\Description\Parameter` $param )`

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

#### Parameters

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

#### Returns

`array|mixed`
# `protected array`
`resolveRecursively( array $value, `Guzzle\Service\Description\Parameter` $param )`

Map nested parameters into the location_key based parameters

#### Parameters

$value
  `array`
  $value Value to map
$param
  ``Guzzle\Service\Description\Parameter``
  $param Parameter that holds information about the current key

#### Returns

`array`
Returns the mapped array

### Magic methods summary