nhttp

An Simple web-framework for Deno and Friends.

MIT License

Downloads
4.4K
Stars
88
Committers
7

Bot releases are hidden (Show)

nhttp - 1.1.14

Published by herudi over 1 year ago

Features :

memo body

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!";
})
nhttp - 1.1.13

Published by herudi over 1 year ago

  • (npm) => requires Node 18.14.0 or higher. cause uses Web API Stream like ReadableStream.
nhttp - 1.1.12

Published by herudi over 1 year ago

New Features

Upload to npm with named nhttp-land.

npm i nhttp-land

Support 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+

Add 3rd party library

Deprecated

  • 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

nhttp - 1.1.11

Published by herudi over 2 years ago

  • Decode URI Component json Cookie j:{
nhttp - 1.1.10

Published by herudi over 2 years ago

  • Wildcard feature
nhttp - 1.1.9

Published by herudi over 2 years ago

nhttp - 1.1.8

Published by herudi almost 3 years ago

  • handle header duplicate
nhttp - 1.1.7

Published by herudi almost 3 years ago

nhttp - 1.1.6

Published by herudi almost 3 years ago

  • Now, support path RegExp
nhttp - 1.1.5

Published by herudi almost 3 years ago

nhttp - 1.1.4

Published by herudi almost 3 years ago

  • response.header fix
nhttp - 1.1.3

Published by herudi almost 3 years ago

  • change wrapMiddleware to expressMiddleware
nhttp - 1.1.2

Published by herudi almost 3 years ago

  • Remove unescape (deprecated)
nhttp - 1.1.1

Published by herudi about 3 years ago

  • add conn to rev
nhttp - 1.1.0

Published by herudi about 3 years ago

  • Reduce Size
  • new api throw error
// example
throw new HttpError(400, 'Bad Request Message')
nhttp - 1.0.0

Published by herudi about 3 years ago

  • First stable release > Deno 1.13
  • fixes #5
nhttp - 0.8.5

Published by herudi about 3 years ago

  • Fix wrapMiddleware
  • Change handleRequest to handleEvent
nhttp - 0.8.4

Published by herudi about 3 years ago

  • Add some object to handleRequest
nhttp - 0.8.3

Published by herudi about 3 years ago

  • Add handleRequest.
  • Export error to mod.
nhttp - 0.8.2

Published by herudi about 3 years ago

  • Unescape Params