Module: Castle::Session

Defined in:
lib/castle/session.rb

Overview

this module uses the Connection object and provides start method for persistent connection usage when there is a need of sending multiple requests at once

Constant Summary collapse

HTTPS_SCHEME =
'https'

Class Method Summary collapse

Class Method Details

.call(&block) ⇒ Object



11
12
13
14
15
# File 'lib/castle/session.rb', line 11

def call(&block)
  return unless block_given?

  Castle::Core::GetConnection.call.start(&block)
end