X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhelper%2Fproxy.inc;fp=tests%2Fhelper%2Fproxy.inc;h=61b20dd1c1b38e3a26190d5d401216387991bc07;hb=aba1f7d332d866ca1f0397d46751864e430985f3;hp=0000000000000000000000000000000000000000;hpb=bc088ae2915ef8e0d2d232bbbb2d091f5893d3c6;p=m6w6%2Fext-http diff --git a/tests/helper/proxy.inc b/tests/helper/proxy.inc new file mode 100644 index 0000000..61b20dd --- /dev/null +++ b/tests/helper/proxy.inc @@ -0,0 +1,21 @@ +getHeader("Proxy-Connection")) { + $response = new http\Env\Response; + $response->send($client); + + /* soak up the request following the connect */ + new http\Message($client, false); + } + + /* return the initial message as response body */ + $response = new http\Env\Response; + $response->getBody()->append($request); + $response->send($client); +});