You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BFastMiddleware: Transparent ASGI middleware in b_fast.fastapi supporting automatic content negotiation via Accept: application/x-bfast (with fallback to application/vnd.bfast).
Zero-Code Endpoint Migration: Accelerate existing JSON endpoints (return {"hello": "world"}) without modifying handler signatures or return types.
Smart Protocol Handling: Preserves empty bodies (204 No Content, 304 Not Modified), non-JSON payloads, explicit binary responses, and errors untouched.
Zero External Dependencies: Pure Python standard library json.loads combined with the native Rust B-FAST encoder.
Full Support for Explicit Modes: First-class exports of BFastResponse and BFastStreamingResponse for direct high-throughput and NDJSON-replacement streaming routes.
📊 CodSpeed Official Validation
29 benchmark suites tested with zero performance regressions.