Skip to content

Commit ec0d576

Browse files
tokersthibaultcha
authored andcommitted
doc: noted that ngx.req.get_method can be used in the body_filter_by_lua* and log_by_lua* phases.
1 parent 60225ad commit ec0d576

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4282,7 +4282,7 @@ ngx.req.get_method
42824282
------------------
42834283
**syntax:** *method_name = ngx.req.get_method()*
42844284

4285-
**context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, balancer_by_lua**
4285+
**context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, balancer_by_lua*, log_by_lua**
42864286

42874287
Retrieves the current request's request method name. Strings like `"GET"` and `"POST"` are returned instead of numerical [method constants](#http-method-constants).
42884288

doc/HttpLuaModule.wiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3546,7 +3546,7 @@ This method does not work in HTTP/2 requests yet.
35463546
== ngx.req.get_method ==
35473547
'''syntax:''' ''method_name = ngx.req.get_method()''
35483548
3549-
'''context:''' ''set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, balancer_by_lua*''
3549+
'''context:''' ''set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, balancer_by_lua*, log_by_lua*''
35503550
35513551
Retrieves the current request's request method name. Strings like <code>"GET"</code> and <code>"POST"</code> are returned instead of numerical [[#HTTP method constants|method constants]].
35523552

0 commit comments

Comments
 (0)