Convert a PSR-7 response to a data type you want to work with.
public static convert ( Psr\Http\Message\ResponseInterface $response, string $requestFormat, string $dataType ) : Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string | ||
$response | Psr\Http\Message\ResponseInterface | |
$requestFormat | string | |
$dataType | string | |
return | Psr\Http\Message\ResponseInterface | Psr\Http\Message\StreamInterface | SimpleXMLElement | string |