🎊 Http v2 released
We just released Leaf Http v2. It comes with a ton of bug fixes and updated functionality for almost each class. These changes include standardization of some practices and performance upgrades.
The Leaf Http module contains a bunch of handlers for managing the kinds and methods through which data flows in and out of your application.
The available classes in the Http module are:
You can install the http module with the Leaf CLI:
leaf install http
or with Composer:
composer require leafs/http
From there you can use any of the classes above in your project.
Cookies and session are independent modules which are not added to the Http module. This is because, the use of session and cookies is relatively low in APIs. If you however want to use sessions and cookies, you can read their guides for information on them.
There are currently two versions of Leaf Http. Click on your version of choice to view its docs.
This is a developer friendly interface which allows you to interact with data coming into your application. Read the docs
This interface allows you to output data from your application in different forms. Read the docs
This interface allows you to manage headers in your application. Read the docs
This interface allows you to manage HTTP cache in your app. Read the docs
This module allows you to manage session in your application. Read the docs
This module allows you to manage cookies in your application. Read the docs