package dream_middleware_ext

  1. Overview
  2. Docs

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/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.

OCaml

Innovation. Community. Security.