Apache 的hook 一覽

來源:互聯網
上載者:User
看了一個日本人總結的Apache的鉤子函數一覽,我覺得對於Apache模組開發的童鞋挺有用的,就搬過來了。
本章的重要內容: 關於hook的調用順序 鉤子函數的調用順序是:「設定的初期化」「進程的初期化」「串連」「請求」 關於RUN_ALL,RUN_FIRST RUN_FIRST  類型的hook 是:被調用的 hook函數的傳回值為 OK 或者是 DECLINE(出錯 )時,後面的hook是不被執行的。
RUN_ALL 類型的hook 是:被調用的 hook函數的傳回值不為 DECLINE(出錯 )時,已經載入的hook將被全部執行。 關於hook 登録函數 ap_hook_xxx() 的參數 ap_hook_xxx() 的參數全部相同.具體的請參照下面.
Index
設定初期化
RUN_ALL ap_hook_pre_config()
RUN_ALL ap_hook_open_logs()
RUN_ALL ap_hook_post_config()
VOID ap_hook_optional_fn_retrieve()
進程初期化
RUN_ALL ap_hook_pre_mpm()
VOID ap_hook_child_init()
串連
RUN_FIRST ap_hook_create_connection()
RUN_ALL ap_hook_pre_connection()
RUN_FIRST ap_hook_process_connection()
請求(Request)
RUN_ALL ap_hook_create_request()
RUN_ALL ap_hook_post_read_request()
RUN_FIRST ap_hook_quick_handler()
RUN_FIRST ap_hook_translate_name()
RUN_FIRST ap_hook_map_to_storage()
RUN_ALL ap_hook_header_parser()
RUN_ALL ap_hook_access_checker()

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.