HTTP Package (@vup/http)
@vup/http is VUP's shared request foundation for app templates.
What It Solves
- Unifies HTTP client behavior across apps
- Centralizes interceptor and error handling strategy
- Reduces duplicated request setup in each project
Typical Scenarios
- Multi-app monorepo with consistent request rules
- Shared auth/token behavior in request pipelines
- Unified response/error normalization for frontend teams
Recommended Layering
packages/http: shared base capabilitiesapps/*/src/api/request.ts: app-level adaptermodules/*/api/*: business-level API modules