PHP Class Amp\Artax\HttpTunneler

Show file Open project: amphp/artax

Public Methods

Method Description
tunnel ( resource $socket, string $authority ) : Amp\Promise Establish an HTTP tunnel to the specified authority over this socket

Private Methods

Method Description
doRead ( HttpTunnelStruct $struct )
doWrite ( HttpTunnelStruct $struct )
enableWriteWatcher ( HttpTunnelStruct $struct )
isSocketDead ( $socketResource )
parseSocketData ( HttpTunnelStruct $struct, $data )

Method Details

tunnel() public method

Establish an HTTP tunnel to the specified authority over this socket
public tunnel ( resource $socket, string $authority ) : Amp\Promise
$socket resource
$authority string
return Amp\Promise