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-21 22:37:17 +00:00
|
|
|
use Psr\Http\Message\ResponseInterface;
|
2021-11-20 14:38:03 +00:00
|
|
|
|
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-28 12:44:42 +00:00
|
|
|
* @param array $request The $_REQUEST content (including content from the PHP input stream)
|
2021-11-14 19:28:36 +00:00
|
|
|
*
|
2021-11-21 22:37:17 +00:00
|
|
|
* @return ResponseInterface 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-28 12:44:42 +00:00
|
|
|
public function run(array $request = []): ResponseInterface;
|
2021-11-14 19:28:36 +00:00
|
|
|
}
|