package dream_middleware_ext

  1. Overview
  2. Docs
A collection of middleware utilities for Dream framework

Install

Dune Dependency

Authors

Maintainers

Sources

dream_middleware_ext-0.1.0.tbz
sha256=568241d96f9843d5fd6350d927cdbb67c7693e86f7c49286283979abb2ff61e1
sha512=061a488694f4165932eb079d13de2b8f363e4b49197541f861d4948e5427b9b7005c81a292dfed8bd8ce9bd0d089a8a80176c90d3c0337983b6c53be1d6d45d6

Description

A collection of middleware utilities for Dream framework

Tags

http web framework middleware

Published: 20 Mar 2025

README

README.md

Documentation

Dream Middleware Extension

A collection of middlewares for Dream framework

Currently supporting the following functionalities:

  • CORS: Cross-Origin Resource Sharing

  • Delay: simulates delayed request

  • Rate Limiter: supports Fixed Window and Token Bucket algorithms

  • Traffic Filter: supports IP, header and cookie based traffic filters

Platform supported: Unix

Examples

  • CORS: https://github.com/axons-talent/dream_middleware_ext/blob/main/examples/cors.ml

  • Delay: https://github.com/axons-talent/dream_middleware_ext/blob/main/examples/delay.ml

  • Rate Limiter: https://github.com/axons-talent/dream_middleware_ext/blob/main/examples/rate_limiter.ml

  • Traffic Filter: https://github.com/axons-talent/dream_middleware_ext/blob/main/examples/traffic_filter.ml

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in dream_middleware_ext by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies (7)

  1. ipaddr
  2. ptime
  3. uri >= "4.4.0"
  4. lwt_ppx
  5. dune >= "2.7"
  6. dream >= "1.0.0~alpha8"
  7. ocaml >= "4.08.0"

Dev Dependencies (2)

  1. odoc with-doc
  2. ppx_expect with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.