public function getResult()
    {
        $result = curl_getinfo($this->resource);

        if (curl_errno($this->resource)) {
            $result['error'] = curl_error($this->resource);
        }

        return [
            'url' => isset($result['url']) ? $result['url'] : null,
            'statusCode' => isset($result['http_code']) ? $result['http_code'] : null,
            'contentType' => isset($result['content_type']) ? $result['content_type'] : null,
            'info' => $result,
            'content' => $this->body,
            'headers' => $this->headers,
            'data' => $this->data,
        ];
    }
public function getResult()
    {
        $result = curl_getinfo($this->resource);

        if (curl_errno($this->resource)) {
            $result['error'] = curl_error($this->resource);
        }

        return [
            'url' => isset($result['url']) ? $result['url'] : null,
            'statusCode' => isset($result['http_code']) ? $result['http_code'] : null,
            'contentType' => isset($result['content_type']) ? $result['content_type'] : null,
            'info' => $result,
            'content' => $this->body,
            'headers' => $this->headers,
            'data' => $this->data,
        ];
    }
public function getResult ( ) { $ result = curl_getinfo ( $ this -> resource ) ; if ( curl_errno ( $ this -> resource ) ) { $ result [ 'error' ] = curl_error ( $ this -> resource ) ; } return [ 'url' => isset ( $ result [ 'url' ] ) ? $ result [ 'url' ] : null , 'statusCode' => isset ( $ result [ 'http_code' ] ) ? $ result [ 'http_code' ] : null , 'contentType' => isset ( $ result [ 'content_type' ] ) ? $ result [ 'content_type' ] : null , 'info' => $ result , 'content' => $ this -> body , 'headers' => $ this -> headers , 'data' => $ this -> data , ] ; }
Returns the response result.
Returns the response result .