/** * {@inheritdoc} */ public function withBody(StreamInterface $body) { return new static($this->wrapped->withBody($body)); }
/** * Proxy to ServerRequestInterface::withBody() * * {@inheritdoc} */ public function withBody(StreamInterface $body) { $new = $this->psrRequest->withBody($body); return new self($new, $this->originalRequest); }
/** * {@inheritDoc} */ public function withBody(StreamInterface $body) { return new self($this->app, $this->psrRequest->withBody($body)); }
/** * @inheritDoc */ public function withBody(StreamInterface $body) { $self = clone $this; $self->serverRequest = $this->serverRequest->withBody($body); return $self; }