package dream_middleware_ext

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dream_middleware_ext-0.1.1.tbz
sha256=cc65c518d7f805459a3bf216793cc9634e122ef884955d25ce4c07e093d36bda
sha512=6f2b072f1678ba7f46a1daadad829102c0479da8aa768eae11e9b2c2c62ae5a7388ab4ca1dab2e54ece589a6fc7f2f5e5e78663478a497f19954093c6efac5df

Description

A collection of middleware utilities for Dream framework

Tags

http web framework middleware

Published: 12 Aug 2025

README

CI

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/gborough/dream_middleware_ext/blob/main/examples/cors.ml
  • Delay: https://github.com/gborough/dream_middleware_ext/blob/main/examples/delay.ml
  • Rate Limiter: https://github.com/gborough/dream_middleware_ext/blob/main/examples/rate_limiter.ml
  • Traffic Filter: https://github.com/gborough/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.