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; }
private function createRawHttpRequestString(RequestInterface $request) { $request->setHeader('Host', $this->getHostName()); $request->setHeader('Connection', 'Close'); return $request->export(); }