class Puppet::Network::HTTP::Session

An HTTP session that references a persistent HTTP connection and an expiration time for the connection.

@api private

Attributes

connection[R]

Public Instance Methods

expired?(now) click to toggle source
# File lib/puppet/network/http/session.rb, line 14
def expired?(now)
  @expiration_time <= now
end

Public Class Methods

new(connection, expiration_time) click to toggle source
# File lib/puppet/network/http/session.rb, line 9
def initialize(connection, expiration_time)
  @connection = connection
  @expiration_time = expiration_time
end