given once, in 2023
HTTP Tortilla: Make PSR-7 Burritos
Wrapping PSR-7 request and response objects so the framework pieces you already use fit together.
About this talk
PSR-7 - HTTP Request / Response objects - provides a great set of common interfaces which allow you to leverage different bits of frameworks and component libraries while building web applications. Even better, there are so many implementations, i likely a library you already use has one.
However, the general behavior of a PRS-7 implementation isn't tailored to the context of your application. But writing your own request / response implementation just for some syntactic sugar seems like a maintenance headache.
Built to scratch a real need on our team, HTTP Tortilla is a set of traits that make it easy to wrap any existing PSR-7 implementation and add your own functionality. But that's only where it starts. By providing a simple way to satisfy the interfaces you can now easily give existing classes - like exceptions - PSR-7 abilities.