The request_method_filter is used to filter traffic based on request method.
Configuration Example #
A simple example is as follows:
flow: - name: test filter: - request_method_filter: exclude: - PUT - POST include: - GET - HEAD - DELETE
Parameter Description #
|exclude||array||Methods of requests that are refused to pass through|
|include||array||Methods of requests that are allowed to pass through|
|action||string||Processing action after filtering conditions are met. The value can be set to |
|status||int||Status code returned after the user-defined mode is matched|
|message||string||Message text returned in user-defined |
|flow||string||ID of the flow executed in user-defined |
Note: If the
includecondition is met, requests are allowed to pass through only when at least one response code in
includeis met. If only the
excludecondition is met, any request that does not meet
excludeis allowed to pass through.