module SmartProxyRemoteExecutionSsh::WEBrickExt::HTTPRequestExt
An extension to ::WEBrick::HTTPRequest to expost the socket object for highjacking for cockpit
Public Instance Methods
meta_vars()
click to toggle source
Calls superclass method
# File lib/smart_proxy_remote_execution_ssh/webrick_ext.rb, line 5 def meta_vars 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