Request Method Related Primitives

February 2, 2022 ยท View on GitHub

req_method_in(method_list)

  • Description: Judge if request method matches configured patterns

  • Parameters

ParameterDescription
method_listString
a list of methods which are concatenated by |.
valid method:GET/POST/PUT/DELETE
  • Example
req_method_in("GET|POST")