class Seahorse::Client::NetHttp::ConnectionPool::ExtendedSession
Helper methods extended onto Net::HTTPSession objects opened by the connection pool. @api private
Attributes
@return [Integer,nil]
Public Class Methods
Source
# File lib/seahorse/client/net_http/connection_pool.rb, line 331 def initialize(http) super(http) @http = http end
Calls superclass method
Public Instance Methods
Source
# File lib/seahorse/client/net_http/connection_pool.rb, line 339 def __getobj__ return yield if block_given? && !defined?(@http) @http end
Source
# File lib/seahorse/client/net_http/connection_pool.rb, line 345 def __setobj__(obj) @http = obj end
Source
# File lib/seahorse/client/net_http/connection_pool.rb, line 356 def finish @http.finish rescue IOError nil end
Attempts to close/finish the session without raising an error.
Source
# File lib/seahorse/client/net_http/connection_pool.rb, line 350 def request(*args, &block) @http.request(*args, &block) @last_used = Aws::Util.monotonic_milliseconds end
Sends the request and tracks that this session has been used.