# openresty-demo **Repository Path**: quinn_zhang/openresty-demo ## Basic Information - **Project Name**: openresty-demo - **Description**: 演示如何使用openresty做http服务和tcp服务端的开发 - **Primary Language**: Lua - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-06-10 - **Last Updated**: 2021-06-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## describe + 使用openresty的demo,包括tcpserver、httpserver和websocket server ``` curl localhost:8000/a 403 Forbidden

403 Forbidden


openresty/1.13.6.1
``` ``` curl localhost:8000/?"hello"="world" hello :{"hello":"world"} curl localhost:8000/mongo?"hello"="world" mongo :{"hello":"world"} ``` + http://127.0.0.1:8000/ws.html 进入websocket聊天界面 + 在demo根目录下,lua client.lua 进入tcp聊天模式 ## dependence - [openresty](http://openresty.org/cn/) - [openresty源码](https://github.com/openresty/) - [lua-resty-mysql](https://github.com/openresty/lua-resty-mysql) - [lua-resty-redis](https://github.com/openresty/lua-resty-redis) ## 源码介绍 ![struct](server.png)