# Http Module

WARNING

There is no need to manually add the Http module if you're using Leaf 3 since this is done for you automatically.

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:

# Installation

You can install the http module with composer:

composer require leafs/http

or with leaf cli:

leaf install http

From there you can use any of the classes above in your project.

INFO

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.

# Request

This is a developer friendly interface which allows you to interact with data coming into your application. Read the docs

# Response

This interface allows you to output data from your application in different forms. Read the docs

# Headers

This interface allows you to manage headers in your application. Read the docs

# Cache

This interface allows you to manage http cache in your app. Read the docs

# Session (module)

This module allows you to manage session in your application. Read the docs

# Cookies (module)

This module allows you to manage cookies in your application. Read the docs