local http

swoole

  class HttpServer{

    创建swoole_http_server类

  }

  挂起http服务。监听本地端口  通过url =>  localhost:port/api/orders/index 访问 来模拟服务器

  将要调用的 接口类对象 作为httpserver的成员对象。 当接收到请求 则调用该成员对象的函数 解析请求 并作出相应处理

posted @ 2018-04-13 17:37  haha瓜  阅读(113)  评论(0编辑  收藏  举报