[Solved] Why do we need specific classes to work with Request and Response?


As mentioned here :

The Request class is an object-oriented representation of the HTTP request message. With it, you have all the request information at your fingertips

and

As a bonus, the Request class does a lot of work in the background that you’ll never need to worry about. For example, the isSecure() method checks the three different values in PHP that can indicate whether or not the user is connecting via a secured connection

2

solved Why do we need specific classes to work with Request and Response?