class Seahorse::Client::AsyncBase
Attributes
@return [H2::Connection]
Public Class Methods
Source
# File lib/seahorse/client/async_base.rb, line 14 def initialize(plugins, options) super(plugins, options) @connection = H2::Connection.new(@config) end
Calls superclass method
Seahorse::Client::Base::new
Public Instance Methods
Source
# File lib/seahorse/client/async_base.rb, line 30 def close_connection @connection.close! end
Closes the underlying HTTP2 Connection for the client @return [Symbol] Returns the status of the connection (:closed)
Source
# File lib/seahorse/client/async_base.rb, line 44 def connection_errors @connection.errors end
Source
# File lib/seahorse/client/async_base.rb, line 36 def new_connection if @connection.closed? @connection = H2::Connection.new(@config) else @connection end end
Creates a new HTTP2 Connection for the client @return [Seahorse::Client::H2::Connection]
Source
# File lib/seahorse/client/async_base.rb, line 24 def operation_names self.class.api.async_operation_names end
@return [Array<Symbol>] Returns a list of valid async request
operation names.