networking
Installation
SKILL.md
Networking (Clients, Parsing, Testing)
When to use
- Adding a new endpoint for a feature.
- Parsing large JSON responses.
- Introducing retries/timeouts or improving reliability.
- Writing unit tests around repositories and clients.
Steps
1) Keep HTTP in the data layer
Typical flow:
- BLoC calls repository interface (domain)
- repository implementation calls datasource/client (data)
- datasource owns request/response details