6use Psr\Http\Message\StreamInterface;
45 $this->statusCode = $code;
57 return $this->headerContainer->getHeaders();
61 return $this->headerContainer->hasHeader( $name );
65 return $this->headerContainer->getHeader( $name );
69 return $this->headerContainer->getHeaderLine( $name );
77 $this->protocolVersion = $version;
81 $this->headerContainer->setHeader( $name, $value );
85 $this->headerContainer->addHeader( $name, $value );
89 $this->headerContainer->removeHeader( $name );
97 return $this->headerContainer->getRawHeaderLines();
100 public function setCookie( $name, $value, $expire = 0, $options = [] ) {
105 'options' => $options