]> git.mxchange.org Git - friendica.git/blob - src/Capabilities/ICanHandleRequests.php
Merge pull request #11107 from annando/api-oauth
[friendica.git] / src / Capabilities / ICanHandleRequests.php
1 <?php
2
3 namespace Friendica\Capabilities;
4
5 use Friendica\Network\HTTPException;
6 use Psr\Http\Message\ResponseInterface;
7
8 /**
9  * This interface provides the capability to handle requests from clients and returns the desired outcome
10  */
11 interface ICanHandleRequests
12 {
13         /**
14          * @param array $request The $_REQUEST content (including content from the PHP input stream)
15          *
16          * @return ResponseInterface responding to the request handling
17          *
18          * @throws HTTPException\InternalServerErrorException
19          */
20         public function run(array $request = []): ResponseInterface;
21 }