Zend\Stratigility\Http\Response::withHeader PHP 메소드

withHeader() 공개 메소드

public withHeader ( $header, $value )
    public function withHeader($header, $value)
    {
        if ($this->complete) {
            throw $this->responseIsAlreadyCompleted(__METHOD__);
        }
        $new = $this->psrResponse->withHeader($header, $value);
        return new self($new);
    }

Usage Example

예제 #1
0
파일: Response.php 프로젝트: spiffyjr/tonis
 /**
  * {@inheritDoc}
  */
 public function withHeader($header, $value)
 {
     return new self($this->app, parent::withHeader($header, $value));
 }