【文件属性】:
文件名称:tumau::amphora:一个用Typescript编写的节点HTTP框架
文件大小:1.1MB
文件格式:ZIP
更新时间:2021-02-05 16:13:33
nodejs http middleware typescript server
:amphora: 图茂
用Typescript编写的节点HTTP框架
Tumau是一个小型NodeJS服务器(就像或),几乎没有外部依赖关系,并且使用TypeScript编写。
要旨
import { createServer , TumauResponse , RequestConsumer } from 'tumau' ;
const server = createServer ( ( ctx ) => {
const request = ctx . get ( RequestConsumer ) ;
return TumauResponse . withText ( `Hello World