def list(path, options = {})
      headers = extract_headers!(options)
      json = client.list("/v1/#{encode_path(path)}", {}, headers)
      json[:data][:keys] || []
    rescue HTTPError => e
      return [] if e.code == 404
      raise
    end
def list(path, options = {})
      headers = extract_headers!(options)
      json = client.list("/v1/#{encode_path(path)}", {}, headers)
      json[:data][:keys] || []
    rescue HTTPError => e
      return [] if e.code == 404
      raise
    end
List the secrets at the given path, if the path supports listing. If the
 the path does not exist, an exception will be raised.

 @example
   Vault.logical.list("secret") #=> [#<Vault::Secret>, #<Vault::Secret>, ...]

 @param [String] path
   the path to list

 @return [Array<String>]