Tutorial - User Guide¶
This tutorial will guide you through all the features of FastHTTP, from basic to advanced.
Structure¶
The tutorial is divided into several sections:
Getting Started¶
- First Steps - Installation and basic concepts
- HTTP Methods - GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
- Request Parameters - Query, JSON, headers
- Response Handling - Working with responses
Core Features¶
- Parallel Execution - Concurrent requests
- AsyncSession - Imperative HTTP client (like httpx.AsyncClient)
- Routers - Group routes with prefixes and nesting
- Tags - Grouping and filtering
- Dependencies - Request modification
- Lifespan - Startup and shutdown
Data Validation¶
- Pydantic Validation - Response validation
- Request Validation - Validate before sending
- Error Validation - Handle API errors
Configuration¶
- Settings - Application configuration
- Headers - HTTP headers
- Timeouts - Request timeouts
- Logging - Debug mode
- Environment Variables - Configuration via env
- HTTP/2 - HTTP/2 support
- Proxy - Proxy configuration
Advanced¶
- Middleware - Global request logic
- Security - Built-in protection
- GraphQL - GraphQL support
- OpenAPI - Swagger UI
How to Use¶
Each section builds upon the previous one. We recommend reading in order if you are new to FastHTTP.
Examples¶
All sections include practical code examples that you can copy and run.