Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 445 Bytes

CallbackRequestHandler.md

File metadata and controls

21 lines (14 loc) · 445 Bytes

CallbackRequestHandler

Methods

handle

<?php

use Chubbyphp\Framework\RequestHandler\CallbackRequestHandler;
use Psr\Http\Message\ServerRequestInterface;
use Some\Psr7\Response;
use Some\Psr7\ServerRequest;

$request = new ServerRequest();
$response = new Response();

$callbackHandler = new CallbackRequestHandler(static fn (ServerRequestInterface $request) => $response);

$response = $callbackHandler->handle($request);