0.2.2 • Published 5 years ago

@citizenfx/http-wrapper v0.2.2

Weekly downloads
1,107
License
MIT
Repository
github
Last release
5 years ago

http-wrapper

A quick HTTP wrapper for CitizenFX servers. Can't be used with Express yet as it directly relies on http from Node.js, use Koa/similar instead.

Usage

const { setHttpCallback } = require('@citizenfx/http-wrapper');
const Koa = require('koa');

const app = new Koa();
app.use(async ctx => {
	ctx.body = 'Hello World!'
});

// instead of app.listen()
setHttpCallback(app.callback());
0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago