You are here

public static function RequestException::getResponseBodySummary in Auth0 Single Sign On 8.2

Get a short summary of the response

Will return `null` if the response is not printable.

Parameters

ResponseInterface $response:

Return value

string|null

1 call to RequestException::getResponseBodySummary()
RequestException::create in vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
Factory method to create a new exception with a normalized error message

File

vendor/guzzlehttp/guzzle/src/Exception/RequestException.php, line 125

Class

RequestException
HTTP Request exception

Namespace

GuzzleHttp\Exception

Code

public static function getResponseBodySummary(ResponseInterface $response) {
  return \GuzzleHttp\Psr7\get_message_body_summary($response);
}