pub trait BoundaryFilter:
Send
+ Sync
+ 'static {
// Required method
fn before_body(&'static self, parts: &Parts) -> ControlFlow<Response<Body>>;
}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§
Sourcefn before_body(&'static self, parts: &Parts) -> ControlFlow<Response<Body>>
fn before_body(&'static self, parts: &Parts) -> ControlFlow<Response<Body>>
parts is crate::http::RequestParts — implementors never need to
name axum.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".