method = $method; $this->path = $path; $this->query = $query; $this->httpVersion = $httpVersion; $this->headers = $headers; } public function getMethod() { return $this->method; } public function getPath() { return $this->path; } public function getQuery() { return $this->query; } public function getHttpVersion() { return $this->httpVersion; } public function getHeaders() { return $this->headers; } public function expectsContinue() { return isset($this->headers['Expect']) && '100-continue' === $this->headers['Expect']; } public function isReadable() { return $this->readable; } public function pause() { $this->emit('pause'); } public function resume() { $this->emit('resume'); } public function close() { $this->readable = false; $this->emit('end'); $this->removeAllListeners(); } public function pipe(WritableStreamInterface $dest, array $options = array()) { Util::pipe($this, $dest, $options); return $dest; } }