An Simple web-framework for Deno and Friends.
MIT License
Bot releases are hidden (Show)
Published by herudi over 1 year ago
because nhttp auto parses the body, it puts memoBody in core.
app.post("/save", async (rev) => {
assertEquals(rev.body, await rev.request.json());
return "Done!";
})
Published by herudi over 1 year ago
Web API Stream
like ReadableStream
.Published by herudi over 1 year ago
npm
with named nhttp-land
.npm i nhttp-land
Bun
, Node
, CF-Workers
, etc.import { nhttp } from "nhttp-land";
// or
// const { nhttp } = require("nhttp-land");
const app = nhttp();
app.get("/", () => "Hello, World");
app.listen(3000);
Require Node 16+
rev.conn
move to rev.info.conn
.bodyLimit
move to bodyParser
.rev.getCookies()
move to rev.cookies
.Full Changelog: https://github.com/nhttp/nhttp/compare/1.1.11...1.1.12
Published by herudi over 2 years ago
Published by herudi over 2 years ago
Published by herudi over 2 years ago
Published by herudi almost 3 years ago
Published by herudi almost 3 years ago
Published by herudi almost 3 years ago
Published by herudi almost 3 years ago
Published by herudi almost 3 years ago
Published by herudi almost 3 years ago
Published by herudi almost 3 years ago
Published by herudi about 3 years ago
Published by herudi about 3 years ago
// example
throw new HttpError(400, 'Bad Request Message')
Published by herudi about 3 years ago
Published by herudi about 3 years ago
Published by herudi about 3 years ago
Published by herudi about 3 years ago
Published by herudi about 3 years ago