effect-http-routing
Installation
SKILL.md
HTTP & Routing
When to use
- Adding HTTP routes, path params, JSON responses
- Wiring handlers to services via layers
- Implementing small proxy/adapter endpoints
Minimal Handler
import * as HttpRouter from "@effect/platform/HttpRouter"
import * as HttpServer from "@effect/platform/HttpServer"
import * as HttpResponse from "@effect/platform/HttpServerResponse"
const app = HttpRouter.empty.pipe(
HttpRouter.get("/ping", Effect.succeed(HttpResponse.text("pong")))
)