How david-hydra/agri works
This repository is a minimal HTTP reverse proxy. An incoming client request invokes the API handler, which forwards the method, URL, and headers to a fixed HTTPS backend; for non-GET/HEAD requests it also forwards the body. The handler relays the backend status, headers, and response body to the client, or returns 502 on a backend request error. The single source file supports these relationships; no broader product capabilities are documented.
Main entry points: nut.ts API proxy
Components 3
Other components
- HTTP client
- API proxy
api/nut.ts - HTTPS backend
Connections 4
- HTTP client → API proxy: sends request
api/nut.ts - API proxy → HTTPS backend: forwards request
api/nut.ts - HTTPS backend → API proxy: returns response
api/nut.ts - API proxy → HTTP client: relays response
api/nut.ts