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 $request The $_REQUEST content (including content from the PHP input stream)
16 * @return ResponseInterface responding to the request handling
18 * @throws HTTPException\InternalServerErrorException
20 public function run(array $request = []): ResponseInterface;