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
RequestMatcher.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaHttp\Message; |
| 4 | |
| 5 | use AmeliaVendor\Psr\Http\Message\RequestInterface; |
| 6 | |
| 7 | /** |
| 8 | * Match a request. |
| 9 | * |
| 10 | * PSR-7 equivalent of Symfony's RequestMatcher |
| 11 | * |
| 12 | * @see https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php |
| 13 | * |
| 14 | * @author Joel Wurtz <joel.wurtz@gmail.com> |
| 15 | */ |
| 16 | interface RequestMatcher |
| 17 | { |
| 18 | /** |
| 19 | * Decides whether the rule(s) implemented by the strategy matches the supplied request. |
| 20 | * |
| 21 | * @param RequestInterface $request The PSR7 request to check for a match |
| 22 | * |
| 23 | * @return bool true if the request matches, false otherwise |
| 24 | */ |
| 25 | public function matches(RequestInterface $request); |
| 26 | } |
| 27 |