apache 源码剖析之 content handlers

1  handle 概述

2 hanle 处理流程

ap_invoke_handler(r);

1 handle 数据结构

2 责任函数

AP_IMPLEMENT_HOOK_RUN_FIRST(int, handler, (request_rec *r),
(r), DECLINED)

AP_IMPLEMENT_HOOK_RUN_FIRST(int, quick_handler, (request_rec *r, int lookup),
(r, lookup), DECLINED)

3  示例:  proxy_handle

ap_hook_handler(proxy_handler, NULL, NULL, APR_HOOK_FIRST);

ap_run_handle

proxy_detect(request_rec *r)

proxy_run_scheme_handler(r, worker, conf, url, NULL, 0);

参考资料:

http://httpd.apache.org/docs/current/en/handler.html

此条目发表在 开源,标准 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>