Class Sabre\HTTP\Sapi

PHP SAPI.

This object is responsible for:

  1. Constructing a Request object based on the current HTTP request sent to the PHP process.
  2. Sending the Response object back to the client.

It could be said that this class provides a mapping between the Request and Response objects, and php's:

  • $_SERVER
  • $_POST
  • $_FILES
  • php://input
  • echo()
  • header()
  • php://output

You can choose to either call all these methods statically, but you can also instantiate this as an object to allow for polymorphism.

Methods