Ergo\Http\Response::export PHP Method

export() public method

public export ( ) : array
return array
    public function export()
    {
        return array($this->getStatus()->getCode(), $this->getHeaders()->toArray($crlf = false), (string) $this->getBody());
    }

Usage Example

Example #1
0
 public function testExport()
 {
     $response = new Http\Response(200, array('Content-Type: text/html'), 'Food goes in here');
     $this->assertEquals($response->export(), array(200, array('Content-Type: text/html'), 'Food goes in here'));
 }