module MSS::Core::Http::ConnectionPool::SessionExtensions
Helper methods extended onto Net::HTTPSession objects opend by the connection pool. @api private
Public Instance Methods
finish()
click to toggle source
Attempts to close/finish the session without raising an error.
Calls superclass method
# File lib/mss/core/http/connection_pool.rb, line 364 def finish super rescue IOError nil end
last_used()
click to toggle source
@return [Time,nil]
# File lib/mss/core/http/connection_pool.rb, line 359 def last_used @last_used end
request(*args, &block)
click to toggle source
Sends the request and tracks that this session has been used.
Calls superclass method
# File lib/mss/core/http/connection_pool.rb, line 353 def request *args, &block @last_used = Time.now super(*args, &block) end