2022-12-24 22:10:40 +08:00
|
|
|
<?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
|
|
|
|
*/
|
2024-01-31 22:15:08 +08:00
|
|
|
public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null): string;
|
2022-12-24 22:10:40 +08:00
|
|
|
}
|