zzhttp
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

🚀 用于快速搭建自己的http服务器的工具

1. 安装

npm install zzhttp

2. 使用

import {ZZHttp} from 'zzhttp';
import * as http from "http";

async function handler(req: http.IncomingMessage): Promise<any> {
    return 'OK';
}

new ZZHttp().init(3000, '127.0.0.1', handler);

Readme

Keywords

Package Sidebar

Install

npm i zzhttp

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

12.2 kB

Total Files

6

Last publish

Collaborators

  • loneship