pub trait BoundaryFilter:
Send
+ Sync
+ 'static {
// Required method
fn before_body(&'static self, parts: &Parts) -> ControlFlow<Response>;
}Expand description
Pre-body request filter, registered by plugins via
ArclyPluginContext::register_boundary_filter.
Runs on every request before the body is buffered — the cheap
early-reject point. Break(resp) short-circuits the request without
paying for body read, auth extraction, or context assembly. Filters must
be synchronous and cheap (header checks, atomic counters); anything
needing async or the RequestContext belongs in an Interceptor.
Required Methods§
fn before_body(&'static self, parts: &Parts) -> ControlFlow<Response>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".