Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
以下是webman中的response助手函数 /** * Response * @param int $status * @param array $headers * @param string $body * @return Response */ function response(string $body = '', int $status = 200, array $headers = []): Response { return new Response($status, $headers, $body); } 其中$body类型约束为string,这样改后是不是更规范一些。
- Loading branch information