You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
561 B
19 lines
561 B
12 months ago
|
<?php
|
||
|
|
||
|
namespace GuzzleHttp;
|
||
|
|
||
|
use Psr\Http\Message\RequestInterface;
|
||
|
use Psr\Http\Message\ResponseInterface;
|
||
|
|
||
|
interface MessageFormatterInterface
|
||
|
{
|
||
|
/**
|
||
|
* Returns a formatted message string.
|
||
|
*
|
||
|
* @param RequestInterface $request Request that was sent
|
||
|
* @param ResponseInterface|null $response Response that was received
|
||
|
* @param \Throwable|null $error Exception that was received
|
||
|
*/
|
||
|
public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string;
|
||
|
}
|