Node.js HTTP 模块案例

初始化

yarn install

运行

ts-node-dev index.ts

使用 curl 请求

curl -v http://localhost:8888