|
Zhamao Framework 3.2.4
A high-performance chatbot + web framework
|
静态 Public 成员函数 | |
| static | parseUri (RequestInterface $request, mixed &$node, mixed &$params) |
| static | handleStaticPage (string $uri, array $settings=[]) |
| static | handleHttpCodePage (int $code) |
| static | createJsonResponse (array $data, int $http_code=200, int $json_flag=JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE) |
| static | getRouteCollection () |
Http 工具类
|
static |
快速创建一个 JSON 格式的 HTTP 响应
| array | $data | 数据 |
| int | $http_code | HTTP 状态码 |
| int | $json_flag | JSON 编码时传入的flag |
|
static |
|
static |
自动寻找默认的 HTTP Code 页面
| ConfigException |
|
static |
解析返回静态文件
@params string $uri 路由地址 @params string $settings 动态传入的配置模式
| ConfigException |
|
static |
解析 Uri,用于匹配路由用的 返回值为状态 第二个参数为路由节点 第三个参数为动态路由节点中匹配到的参数列表