public function withHeader($header, $value) { if ($this->complete) { throw $this->responseIsAlreadyCompleted(__METHOD__); } $new = $this->psrResponse->withHeader($header, $value); return new self($new); }
/** * {@inheritDoc} */ public function withHeader($header, $value) { return new self($this->app, parent::withHeader($header, $value)); }