getName()]; return $request->withHeader($param->getWireName(), $param->filter($value)); } /** * @return RequestInterface */ public function after( CommandInterface $command, RequestInterface $request, Operation $operation ) { /** @var Parameter $additional */ $additional = $operation->getAdditionalParameters(); if ($additional && ($additional->getLocation() === $this->locationName)) { foreach ($command->toArray() as $key => $value) { if (!$operation->hasParam($key)) { $request = $request->withHeader($key, $additional->filter($value)); } } } return $request; } }