예제 #1
0
 function filterRequest(RequestInterface $request)
 {
     $request->setHeader('Asar-Internal-Debug', $this->debug);
     $app_name = $request->getHeader('Asar-Internal-Application-Name');
     if ($app_name) {
         $this->debug->set('Application', $app_name);
     }
     return $request;
 }
예제 #2
0
 private function createRawHttpRequestString(RequestInterface $request)
 {
     $request->setHeader('Host', $this->getHostName());
     $request->setHeader('Connection', 'Close');
     return $request->export();
 }