mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
28 lines
951 B
PHP
28 lines
951 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Capabilities;
|
|
|
|
use Friendica\Module\Special\HTTPException as ModuleHTTPException;
|
|
use Friendica\Network\HTTPException;
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
/**
|
|
* This interface provides the capability to handle requests from clients and returns the desired outcome
|
|
*/
|
|
interface ICanHandleRequests
|
|
{
|
|
/**
|
|
* @param ModuleHTTPException $httpException The special HTTPException Module in case of underlying errors
|
|
* @param array $request The $_REQUEST content (including content from the PHP input stream)
|
|
*
|
|
* @return ResponseInterface responding to the request handling
|
|
*
|
|
* @throws HTTPException\InternalServerErrorException
|
|
*/
|
|
public function run(ModuleHTTPException $httpException, array $request = []): ResponseInterface;
|
|
}
|