/openresty-demo

Demo包含: Mongodb和MySQL的读写; 聊天业务 - websocket; 轮训服务器的vmstat数据 – http; 文件上传; TcpServer – 需通过客户端连接

Primary LanguageJavaScript

describe

  • 使用openresty的demo,包括tcpserver、httpserver和websocket server
curl localhost:8000/a

<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>openresty/1.13.6.1</center>
</body>
</html>

curl localhost:8000/?"hello"="world"
hello :{"hello":"world"}

curl localhost:8000/mongo?"hello"="world"
mongo :{"hello":"world"}

dependence

源码介绍

struct