Category: FastAPI
45 Posts
FastAPI: Reduce API Bandwidth with GZipMiddleware in 5 Minutes
FastAPI: Compress Responses with GZipMiddleware in 5 Minutes — Less Bandwidth, No Endpoint Changes
FastAPI: Block Host Header Attacks with TrustedHostMiddleware in 5 Minutes
FastAPI: Accept HTML Form Data with Form() — End 422 Errors When the Frontend Sends Forms Instead of JSON in 5 Minutes
FastAPI: Ditch the Deprecated ORJSONResponse — Speed Up JSON Responses with Return Type Annotations in 5 Minutes
FastAPI: Serve Files Safely with FileResponse — Block Path Traversal in 5 Minutes
FastAPI: Return the Right Status Codes and Headers — 201 Created, 204 No Content, and Location in 5 Minutes
FastAPI: Bundle a Dozen Query Params into One Pydantic Model — Centralized Validation in 5 Minutes
