Interface PluginFilter
public interface PluginFilter
-
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(HttpRequest request, HttpResponse response, PluginFilterChain chain) do the plugin filter chainname()need request body in plugins or notdeclare in advance the nginx variables that you want to use in the plugin
-
Method Details
-
name
String name()- Returns:
- the name of plugin filter
-
filter
do the plugin filter chain- Parameters:
request- the request form APISIXresponse- the response for APISIXchain- the chain of filters
-
requiredVars
declare in advance the nginx variables that you want to use in the plugin- Returns:
- the nginx variables as list
-
requiredBody
Boolean requiredBody()need request body in plugins or not- Returns:
- true if need request body
-