3 namespace Friendica\Capabilities;
5 use Friendica\Network\HTTPException;
6 use Psr\Http\Message\ResponseInterface;
9 * This interface provides the capability to handle requests from clients and returns the desired outcome
11 interface ICanHandleRequests
14 * @param array $post The $_POST content (in case of POST)
15 * @param array $request The $_REQUEST content (in case of GET, POST)
17 * @return ResponseInterface responding to the request handling
19 * @throws HTTPException\InternalServerErrorException
21 public function run(array $post = [], array $request = []): ResponseInterface;