---
title: Handlers and HTTP
---

import DocCard from '@theme/DocCard';

Handlers are classes that process a web request and return a response. They implement the necessary logic allowing to return this response, which can involve processing form data for example.

## Guides

<div className="row category-index-row">
  <article key="introduction" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/introduction", label: "Introduction", docId: "handlers-and-http/introduction" }} />
  </article>
  <article key="routing" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/routing", label: "Routing", docId: "handlers-and-http/routing" }} />
  </article>
  <article key="generic-handlers" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/generic-handlers", label: "Generic handlers", docId: "handlers-and-http/generic-handlers" }} />
  </article>
  <article key="error-handlers" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/error-handlers", label: "Error handlers", docId: "handlers-and-http/error-handlers" }} />
  </article>
  <article key="middlewares" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/sessions", label: "Sessions", docId: "handlers-and-http/sessions" }} />
  </article>
  <article key="middlewares" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/cookies", label: "Cookies", docId: "handlers-and-http/cookies" }} />
  </article>
  <article key="middlewares" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/middlewares", label: "Middlewares", docId: "handlers-and-http/middlewares" }} />
  </article>
</div>

## How-to's

<div className="row category-index-row">
  <article key="create-custom-route-parameters" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/how-to/create-custom-route-parameters", label: "Create custom route parameters", docId: "handlers-and-http/how-to/create-custom-route-parameters" }} />
  </article>
</div>

## Reference

<div className="row category-index-row">
  <article key="generic-handlers" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/reference/generic-handlers", label: "Generic handlers", docId: "handlers-and-http/reference/generic-handlers" }} />
  </article>
  <article key="middlewares" className="col col--6">
    <DocCard item={{type: "link", href: "./handlers-and-http/reference/middlewares", label: "Middlewares", docId: "handlers-and-http/reference/middlewares" }} />
  </article>
</div>
