Expand description
§Actix middlewares
This crate provides two middlewares for Actix web applications:
AllowMiddleware: allows requests from specific IP addresses or ranges.DisallowMiddleware: disallows requests from specific IP addresses or ranges.
Structs§
- Allow
List - This should be loaded as the first middleware, as in, last in the sequence of wrap() Actix loads middlewares in bottom up fashion, and if the request’s IP address is not in the allow list, it will be denied, and there is no point in continuing to process the request.
- Deny
List - This should be loaded as the first middleware, as in, last in the sequence of wrap() Actix loads middlewares in bottom up fashion, and if the request’s IP address is in the deny list, it will be denied, and there is no point in continuing to process the request.