HTTP Server and Client module for the oly framework (v1.1.0). Wraps Koa for server-side and Axios for client-side HTTP operations, integrated with oly's dependency injection. Stable, part of the oly ecosystem. Differentiator: seamless DI-based injection and configuration, tightly coupled with oly.
npm install oly-httpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an oly kernel with HTTP server and client, adds Koa middleware, starts server, sends GET request, logs response.
Ensure oly ^1.0.0 is installed alongside oly-http.
Use .then() or await after .start() to ensure server is ready.
Use Koa-style middleware signatures.
Monitor axios CVEs; consider upgrading oly-http if newer major version released.
npm install oly oly-http
Set ctx.body = 'response' (not ctx.send())
Change port in Kernel.create({HTTP_SERVER_PORT: ...})