harp_apps.rules.subscribers¶
- class RulesSubscriber[source]¶
Bases:
object- async on_filter_event(event)[source]¶
- Parameters:
event (ProxyFilterEvent | HttpClientFilterEvent)
- subscribe(dispatcher)[source]¶
- Parameters:
dispatcher (IAsyncEventDispatcher)
- unsubscribe(dispatcher)[source]¶
- Parameters:
dispatcher (IAsyncEventDispatcher)
- DEFAULT_TIME_BUDGET = 1.0¶
Seconds a rule may run before it is given up on.
- FAIL_CLOSED_RULE = 'on_request'¶
The only level whose failure stops the transaction, the others let it go on unfiltered.
- MAX_RULE_THREADS = 8¶
Threads running rules. A rule that outlives its budget keeps its thread, so they are bounded and kept apart from the loop’s default executor.