Releases: effectra/http-server-handler
Releases · effectra/http-server-handler
v2.0.0
- Added a new private property
lastRequest
of typeServerRequestInterface
to store the last processed request. - Updated the constructor to include the
ResponseInterface $response
andarray $stack
parameters. - The
RequestHandler
class now implements theRequestHandlerInterface
. - Modified the
handle
method to assign the incoming request to thelastRequest
property before processing the middlewares stack. - Inside the
handle
method, the response generated by the middlewares stack is now assigned to a local variable$response
before being returned. - Added a new public method
getLastRequest
to retrieve the last processed request. It returns aServerRequestInterface|null
, representing the last request ornull
if no request has been processed.
These changes introduce the ability to track and retrieve the last processed request through the getLastRequest
method, providing more flexibility and functionality to the RequestHandler
class.
v1.0.0
Update composer.json