Skip to content

method

Modify the request method.

Rule Syntax

txt
pattern method://value [filters...]
ParametersDescriptionDetailed Documentation
patternExpression to match the request URLMatch Pattern Documentation
valueRequest method name such as get/post/head (case-insensitive)
filtersOptional filters, supporting matching:
• Request URL/Method/Header/Content
• Response Status Code/Header
Filter Documentation

Configuration Example

txt
# Visit `https://www.example.com/path/to` and see the request method as `POST` on the Whistle packet capture interface.
www.example.com/path method://post

# Modify a method with a filter
www.example.com/path2 method://patch includeFilter://reqH.content-type=multipart/form-data