Module: SmartProxyRemoteExecutionSsh::WEBrickExt::HTTPRequestExt
- Defined in:
- lib/smart_proxy_remote_execution_ssh/webrick_ext.rb
Overview
An extension to ::WEBrick::HTTPRequest to expost the socket object for highjacking for cockpit
Instance Method Summary collapse
Instance Method Details
#meta_vars ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/smart_proxy_remote_execution_ssh/webrick_ext.rb', line 5 def super.merge('ext.hijack!' => -> { # This stops Webrick from sending its own reply. @request_line = nil; # This stops Webrick from trying to read the next request on the socket. @keep_alive = false; return @socket; }) end |