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