Files
Heimdall/vendor/php-http/message/src/Formatter.php
2018-10-18 15:59:38 +01:00

33 lines
623 B
PHP

<?php
namespace Http\Message;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
/**
* Formats a request and/or a response as a string.
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
interface Formatter
{
/**
* Formats a request.
*
* @param RequestInterface $request
*
* @return string
*/
public function formatRequest(RequestInterface $request);
/**
* Formats a response.
*
* @param ResponseInterface $response
*
* @return string
*/
public function formatResponse(ResponseInterface $response);
}