@hectoday/http

WARNING: This framework is under development and imperfections may occur.

An explicit, standards-first HTTP framework built for learning.


Why

Most frameworks abstract HTTP away. @hectoday/http does the opposite.

You work directly with Request, Response, headers, status codes, routing, and guards.

So you actually learn how the web works, not just how to use a framework.


Example

import { route, setup } from "@hectoday/http";

const app = setup([
  route.get("/", {
    resolve: () => {
      return new Response("Hello HTTP");
    },
  }),
]);

Deno.serve(app.fetch);

No wrappers. No custom response objects. Just HTTP.


Principles


Good for


Learn the protocol. Then build the abstractions.