src/Server/AmazonServer.php
private function packCommands(array $commands): array
    {
        $headers = [];
        foreach ($commands as $command => $value) {
            $headers['X-Amz-' . $command] = $value;
        }

        return $headers;
    }
private function packCommands(array $commands): array
    {
        $headers = [];
        foreach ($commands as $command => $value) {
            $headers['X-Amz-' . $command] = $value;
        }

        return $headers;
    }
private function packCommands ( array $ commands ) : array { $ headers = [ ] ; foreach ( $ commands as $ command => $ value ) { $ headers [ 'X-Amz-' . $ command ] = $ value ; } return $ headers ; }
Generate request headers based on provided set of amazon commands.

@param array $commands

@return array
Generate request headers based on provided set of amazon commands .