src/Weew/Http/HttpResponse.php
public function extend(IHttpResponse $response) {
        $this->setHeaders(clone($response->getHeaders()));
        $this->setProtocol($response->getProtocol());
        $this->setProtocolVersion($response->getProtocolVersion());
        $this->setStatusCode($response->getStatusCode());
        $this->setContent($response->getContent());
        $this->setCookies(clone($response->getCookies()));

        $this->setDefaultContentType();
    }
public function extend(IHttpResponse $response) {
        $this->setHeaders(clone($response->getHeaders()));
        $this->setProtocol($response->getProtocol());
        $this->setProtocolVersion($response->getProtocolVersion());
        $this->setStatusCode($response->getStatusCode());
        $this->setContent($response->getContent());
        $this->setCookies(clone($response->getCookies()));

        $this->setDefaultContentType();
    }
public function extend ( IHttpResponse $ response ) { $ this -> setHeaders ( clone ( $ response -> getHeaders ( ) ) ) ; $ this -> setProtocol ( $ response -> getProtocol ( ) ) ; $ this -> setProtocolVersion ( $ response -> getProtocolVersion ( ) ) ; $ this -> setStatusCode ( $ response -> getStatusCode ( ) ) ; $ this -> setContent ( $ response -> getContent ( ) ) ; $ this -> setCookies ( clone ( $ response -> getCookies ( ) ) ) ; $ this -> setDefaultContentType ( ) ; }
Extend current response with another.

@param IHttpResponse $response
Extend current response with another .