Пример #1
0
 /**
  * Proxy to PsrResponseInterface::withProtocolVersion()
  *
  * {@inheritdoc}
  */
 public function withProtocolVersion($version)
 {
     $new = $this->psrResponse->withProtocolVersion($version);
     return new self($new);
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function withProtocolVersion($version)
 {
     return new self($this->app, $this->decorated->withProtocolVersion($version));
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function withProtocolVersion($version)
 {
     return new HttpException($this->response->withProtocolVersion($version), $this->attributes);
 }
Пример #4
0
 /**
  * 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);
 }
Пример #5
0
 /**
  * @param string $version
  * @return mixed
  */
 public function withProtocolVersion($version)
 {
     $response = clone $this;
     $response->response = $this->response->withProtocolVersion($version);
     return $response;
 }