Authentication
6 months ago
Builder
6 months ago
Decorator
6 months ago
Encoding
6 months ago
Exception
2 years ago
Formatter
6 months ago
MessageFactory
6 months ago
RequestMatcher
6 months ago
Stream
6 months ago
StreamFactory
6 months ago
UriFactory
6 months ago
Authentication.php
6 months ago
Cookie.php
2 years ago
CookieJar.php
2 years ago
CookieUtil.php
2 years ago
Exception.php
2 years ago
Formatter.php
6 months ago
RequestMatcher.php
6 months ago
filters.php
7 years ago
Formatter.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaHttp\Message; |
| 4 | |
| 5 | use AmeliaVendor\Psr\Http\Message\RequestInterface; |
| 6 | use AmeliaVendor\Psr\Http\Message\ResponseInterface; |
| 7 | |
| 8 | /** |
| 9 | * Formats a request and/or a response as a string. |
| 10 | * |
| 11 | * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> |
| 12 | */ |
| 13 | interface Formatter |
| 14 | { |
| 15 | /** |
| 16 | * Formats a request. |
| 17 | * |
| 18 | * @param RequestInterface $request |
| 19 | * |
| 20 | * @return string |
| 21 | */ |
| 22 | public function formatRequest(RequestInterface $request); |
| 23 | |
| 24 | /** |
| 25 | * Formats a response. |
| 26 | * |
| 27 | * @param ResponseInterface $response |
| 28 | * |
| 29 | * @return string |
| 30 | */ |
| 31 | public function formatResponse(ResponseInterface $response); |
| 32 | } |
| 33 |