Skip to main content

Module matcher

Module matcher 

Source
Expand description

Compile Shield config patterns into runtime path matchers.

Structs§

EndpointClass
A compiled endpoint-class rule: requests whose path matches matcher are limited per client at rate, grouped under class.
IdentifierEndpoint
A compiled per-identifier rule: requests to a matching path are limited by a value read from the request body field body_field.

Functions§

compile_endpoint_classes
Compile endpoint-class rules, parsing each rate against default_window.
compile_identifier_endpoints
Compile per-identifier rules, parsing each rate against default_window.