Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 3.1 KB

ngxget_phase.md

File metadata and controls

69 lines (56 loc) · 3.1 KB

ngx.get_phase

语法: str = ngx.get_phase()

环境: init_by_lua, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.**

检索当前正在执行的阶段名称。返回值可能有: Retrieves the current running phase name. Possible return values are

该 API 是从 v0.5.10 版本首次引入。

返回目录

English source:

ngx.get_phase

syntax: str = ngx.get_phase()

context: init_by_lua, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.**

Retrieves the current running phase name. Possible return values are

This API was first introduced in the v0.5.10 release.

Back to TOC