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