1<?php
2
3namespace GuzzleHttp;
4
5use Psr\Http\Message\RequestInterface;
6use Psr\Http\Message\ResponseInterface;
7
8interface MessageFormatterInterface
9{
10    /**
11     * Returns a formatted message string.
12     *
13     * @param RequestInterface       $request  Request that was sent
14     * @param ResponseInterface|null $response Response that was received
15     * @param \Throwable|null        $error    Exception that was received
16     */
17    public function format(RequestInterface $request, ResponseInterface $response = null, \Throwable $error = null): string;
18}
19