/** * Proxy to PsrResponseInterface::withProtocolVersion() * * {@inheritdoc} */ public function withProtocolVersion($version) { $new = $this->psrResponse->withProtocolVersion($version); return new self($new); }
/** * {@inheritDoc} */ public function withProtocolVersion($version) { return new self($this->app, $this->decorated->withProtocolVersion($version)); }
/** * {@inheritdoc} */ public function withProtocolVersion($version) { return new HttpException($this->response->withProtocolVersion($version), $this->attributes); }
/** * Return an instance with the specified HTTP protocol version. * * The version string MUST contain only the HTTP version number (e.g., * "1.1", "1.0"). * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that has the * new protocol version. * * @param string $version HTTP protocol version * @return self */ function withProtocolVersion($version) { return $this->response->withProtocolVersion($version); }
/** * @param string $version * @return mixed */ public function withProtocolVersion($version) { $response = clone $this; $response->response = $this->response->withProtocolVersion($version); return $response; }