Module: HTTPX::Plugins::Upgrade::ConnectionMethods

Defined in:
lib/httpx/plugins/upgrade.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hijackedObject (readonly)

Returns the value of attribute hijacked.



66
67
68
# File 'lib/httpx/plugins/upgrade.rb', line 66

def hijacked
  @hijacked
end

#upgrade_protocolObject (readonly)

Returns the value of attribute upgrade_protocol.



66
67
68
# File 'lib/httpx/plugins/upgrade.rb', line 66

def upgrade_protocol
  @upgrade_protocol
end

Instance Method Details

#hijack_ioObject



68
69
70
71
72
73
# File 'lib/httpx/plugins/upgrade.rb', line 68

def hijack_io
  @hijacked = true

  # connection is taken away from selector and not given back to the pool.
  @current_session.deselect_connection(self, @current_selector, true)
end