src/Room11/HTTP/Response/Response.php
public function import(Response $response)
    {
        $this->clear();
        foreach ($response->toArray() as $key => $value) {
            $this->offsetSet($key, $value);
        }

        return $this;
    }
public function import(Response $response)
    {
        $this->clear();
        foreach ($response->toArray() as $key => $value) {
            $this->offsetSet($key, $value);
        }

        return $this;
    }
public function import ( Response $ response ) { $ this -> clear ( ) ; foreach ( $ response -> toArray ( ) as $ key => $ value ) { $ this -> offsetSet ( $ key , $ value ) ; } return $ this ; }
Import values from external Response instance

Calling import() will clear all previously assigned values before assigning those from the
new Response instance.

@param \Room11\HTTP\Response $response
@return Response Returns the current object instance
Import values from external Response instance