1 | <?php |
||
14 | class HttpTunnel extends Tunnel |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $proxyHosts; |
||
20 | |||
21 | protected $proxyHost; |
||
22 | |||
23 | public function __construct($serverPort, $proxyHosts) |
||
28 | |||
29 | /** |
||
30 | * Gets all proxy hosts. |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getProxyHosts() |
||
38 | |||
39 | /** |
||
40 | * @param mixed $proxyHost |
||
41 | */ |
||
42 | public function setProxyHost($proxyHost) |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getProxyHost() |
||
54 | |||
55 | /** |
||
56 | * Checks whether the tunnel supports the host. |
||
57 | * |
||
58 | * @param string $proxyHost |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function supportProxyHost($proxyHost) |
||
66 | |||
67 | /** |
||
68 | * Gets the forward host of the proxy host. |
||
69 | * |
||
70 | * @param string $proxyHost |
||
71 | * |
||
72 | * @return string|null |
||
73 | */ |
||
74 | public function getForwardHost($proxyHost) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function match($info) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function toArray() |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function getProtocol() |
||
110 | } |