public function forwardedHosts()
 {
     $req = $this->newRequest('GET', new \peer\URL('http://localhost/'));
     $req->addHeader('X-Forwarded-Host', 'balance.example.com, proxy.example.com');
     $res = new \scriptlet\HttpScriptletResponse();
     $s = new \scriptlet\HttpScriptlet();
     $s->service($req, $res);
     $this->assertEquals('balance.example.com', $req->getURL()->getHost());
 }
 public function traceUnSupported()
 {
     $this->newRequest('TRACE', new \peer\URL('http://localhost/'));
     $s = new \scriptlet\HttpScriptlet();
     $s->process();
 }