Crow:路由局部插件3 调用after_handle

紧接Crow:路由局部插件2 调用before_handle-CSDN博客

完成middleware_call_helper的调用后

把res.complete_request_handler设置为后续处理完handle后将要处理的lambda

然后调用rule->handle,之后返回到Connect::handle,参考

Crow:http请求到Rule绑定的handler_的调用链-CSDN博客

void Connnect::handle()
{
    ...
    if (!res.completed_)
    {
        res.complete_request_handler_ = [this] {
            this->complete_request();
        };
        need_to_call_after_handlers_ = true;
        handler_->handle(req_, res, r

你可能感兴趣的:(Crow,c++)