Use X-REQUEST-ID for Error pages
This commit is contained in:
parent
5584e7a4e5
commit
4f1bb0d274
55 changed files with 218 additions and 130 deletions
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
namespace Friendica\Capabilities;
|
||||
|
||||
use Friendica\Module\Special\HTTPException as ModuleHTTPException;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
|
|
@ -30,11 +31,12 @@ use Psr\Http\Message\ResponseInterface;
|
|||
interface ICanHandleRequests
|
||||
{
|
||||
/**
|
||||
* @param array $request The $_REQUEST content (including content from the PHP input stream)
|
||||
* @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(array $request = []): ResponseInterface;
|
||||
public function run(ModuleHTTPException $httpException, array $request = []): ResponseInterface;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue