2021-11-14 19:28:36 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Capabilities;
|
|
|
|
|
2021-11-20 14:38:03 +00:00
|
|
|
use Friendica\Network\HTTPException;
|
|
|
|
|
2021-11-14 19:28:36 +00:00
|
|
|
/**
|
|
|
|
* This interface provides the capability to handle requests from clients and returns the desired outcome
|
|
|
|
*/
|
|
|
|
interface ICanHandleRequests
|
|
|
|
{
|
|
|
|
/**
|
2021-11-20 14:38:03 +00:00
|
|
|
* @param array $post The $_POST content (in case of POST)
|
|
|
|
* @param array $request The $_REQUEST content (in case of GET, POST)
|
2021-11-14 19:28:36 +00:00
|
|
|
*
|
2021-11-21 19:06:36 +00:00
|
|
|
* @return IRespondToRequests responding to the request handling
|
2021-11-14 19:28:36 +00:00
|
|
|
*
|
2021-11-20 14:38:03 +00:00
|
|
|
* @throws HTTPException\InternalServerErrorException
|
2021-11-14 19:28:36 +00:00
|
|
|
*/
|
2021-11-21 19:06:36 +00:00
|
|
|
public function run(array $post = [], array $request = []): IRespondToRequests;
|
2021-11-14 19:28:36 +00:00
|
|
|
}
|