vscing
vscing
 
// 执行HTTP应用并响应 $request = new app\common\Request(); $http = (new App())->http; $response = $http->run($request); $response->send(); $http->end($response); 自定义Request类,在中间件 public function handle(Request $request, \Closure $next): Response { $request->header(); // 获取不到任何信息 }
业务组件如果用这种写法,比较繁琐,会推出一个案例或者其它方案吗?
### 请先确认 - [x] 我已搜索并确定这个提交不是重复的 ### Taro 版本 v4 ### 相关领域 H5 路由 ### 使用框架 React ### 相关平台 - [ ] 所有平台 - [x] Web 端(H5) - [ ] 移动端(React-Native)...