We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfab1e3 commit e26c1c4Copy full SHA for e26c1c4
netmockery/documentation.md
@@ -123,6 +123,23 @@ The ``match`` parameter within the ``responses`` list can match requests using o
123
]
124
}
125
126
+### Limiting HTTP methods
127
+
128
+The ``match`` object can have an optional ``methods`` property to match requests by HTTP method.
129
130
+Example, match PUT and POST requests:
131
132
+ "match": {
133
+ "methods": "PUT POST"
134
+ }
135
136
+Example, match regular expression, only GET requests:
137
138
139
+ "regex": "...",
140
+ "methods": "GET"
141
142
143
## Response creation
144
145
Several parameters inside the ``responses`` list control how netmockery creates the response.
0 commit comments