Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function withAddedHeader($name, $value)
 {
     return new static($this->wrapped->withAddedHeader($name, $value));
 }
 /**
  * Proxy to ServerRequestInterface::addHeader()
  *
  * {@inheritdoc}
  */
 public function withAddedHeader($header, $value)
 {
     $new = $this->psrRequest->withAddedHeader($header, $value);
     return new self($new, $this->originalRequest);
 }
Exemple #3
0
 /**
  * {@inheritDoc}
  */
 public function withAddedHeader($name, $value)
 {
     return new self($this->app, $this->psrRequest->withAddedHeader($name, $value));
 }
Exemple #4
0
 /**
  * @inheritDoc
  */
 public function withAddedHeader($name, $value)
 {
     $self = clone $this;
     $self->serverRequest = $this->serverRequest->withAddedHeader($name, $value);
     return $self;
 }