src/Glacier/GlacierClient.php
private function getApiVersionMiddleware()
    {
        return function (callable $handler) {
            return function (
                CommandInterface $command,
                RequestInterface $request = null
            ) use ($handler) {
                return $handler($command, $request->withHeader(
                    'x-amz-glacier-version',
                    $this->getApi()->getMetadata('apiVersion')
                ));
            };
        };
    }
private function getApiVersionMiddleware()
    {
        return function (callable $handler) {
            return function (
                CommandInterface $command,
                RequestInterface $request = null
            ) use ($handler) {
                return $handler($command, $request->withHeader(
                    'x-amz-glacier-version',
                    $this->getApi()->getMetadata('apiVersion')
                ));
            };
        };
    }
private function getApiVersionMiddleware ( ) { return function ( callable $ handler ) { return function ( CommandInterface $ command , RequestInterface $ request = null ) use ( $ handler ) { return $ handler ( $ command , $ request -> withHeader ( 'x-amz-glacier-version' , $ this -> getApi ( ) -> getMetadata ( 'apiVersion' ) ) ) ; } ; } ; }
Creates a middleware that adds the API version header for all requests.

@return callable
Creates a middleware that adds the API version header for all requests .