local http

swoole

  class HttpServer{

    创建swoole_http_server类

  }

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

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

原文地址:https://www.cnblogs.com/hiraeth/p/8822153.html