Zend\Stratigility\Http\Response::withoutHeader PHP Method

withoutHeader() public method

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

Usage Example

Example #1
0
 /**
  * {@inheritDoc}
  */
 public function withoutHeader($header)
 {
     return new self($this->app, parent::withoutHeader($header));
 }