Aws\Glacier\GlacierClient::getApiVersionMiddleware PHP Méthode

getApiVersionMiddleware() private méthode

Creates a middleware that adds the API version header for all requests.
private getApiVersionMiddleware ( ) : callable
Résultat callable
    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')));
            };
        };
    }