mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-07 16:55:35 +08:00
1.6 KiB
1.6 KiB
ZM\Utils\HttpUtil
parseUri
public function parseUri(OneBot\Http\ServerRequest $request, mixed $node, mixed $params): int
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| request | OneBot\Http\ServerRequest | |
| node | mixed | |
| params | mixed |
返回
| 类型 | 描述 |
|---|---|
| int |
handleStaticPage
public function handleStaticPage(string $uri, array $settings): Psr\Http\Message\ResponseInterface
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| uri | string | |
| settings | array |
返回
| 类型 | 描述 |
|---|---|
| Psr\Http\Message\ResponseInterface |
handleHttpCodePage
public function handleHttpCodePage(int $code): Psr\Http\Message\ResponseInterface
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | int |
返回
| 类型 | 描述 |
|---|---|
| Psr\Http\Message\ResponseInterface |
createJsonResponse
public function createJsonResponse(array $data, int $http_code, int $json_flag): Psr\Http\Message\ResponseInterface
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | array | |
| http_code | int | |
| json_flag | int |
返回
| 类型 | 描述 |
|---|---|
| Psr\Http\Message\ResponseInterface |