2.0.9 • Published 2 months ago

@octanuary/httpz v2.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

httpz

HTTPz (http-easy) is a lightweight HTTP framework for Node.js.

Quick Start

To use HTTPz, install it as a dependency in your project, then add some code.

npm:

npm install @octanuary/httpz

Example

import httpz from "@octanuary/httpz";

const server = new httpz.Server();

server
	.route("GET", "/", async (req, res) => {
		res.end("Hello World!");
	})
	.listen(5000);

Features

Routing

HTTPz already comes with a router built-in, which is httpz.Group, so you can do this:

import httpz from "@octanuary/httpz";

const server = new httpz.Server();
const group = new httpz.Group();

group.route("GET", "/", (req, res) => {
	res.end("Hello World!");
});

server
	.add(group)
	.listen(5000);
2.0.9

2 months ago

2.0.8

2 months ago

2.0.3

3 months ago

2.0.2

3 months ago

2.0.5

3 months ago

2.0.4

3 months ago

2.0.7

3 months ago

2.0.6

3 months ago

2.0.1

3 months ago

2.0.0

3 months ago

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago