This commit is contained in:
Marcel Pociot
2020-04-18 00:03:58 +02:00
parent 81d8311995
commit 97dcd2ab1e
9 changed files with 154 additions and 83 deletions

View File

@@ -56,20 +56,6 @@ class ProxyManager
});
}
private function parseResponse(string $response)
{
try {
return gPsr\parse_response($response);
} catch (\Throwable $e) {
return null;
}
}
private function parseRequest($data)
{
return gPsr\parse_request($data);
}
protected function getContentLength($proxyConnection): ?int
{
$request = parse_request($proxyConnection->buffer);