leafsphp / leaf

🍁 The easiest way to create clean, simple but powerful web apps and APIs quickly
https://leafphp.dev
MIT License
1.1k stars 68 forks source link

Using custom request and response objects #130

Closed mychidarko closed 2 years ago

mychidarko commented 2 years ago

Is your feature request related to a problem? Please describe. In some case, you would like to add custom methods to the request or response objects. The easiest use case for this would be custom authentication where you would want to attach a user method to the request object.

Describe the solution you'd like A solution that lets users extend the current request and response classes and add to them.