HTTPretty icon indicating copy to clipboard operation
HTTPretty copied to clipboard

An ANY method that matches any method

Open jamielennox opened this issue 11 years ago • 2 comments

Particularly when using regexps the method is passed as a parameter to the callback function.

It'd be really useful if i could have a way of stubbing ALL or a list of methods that would be matched.

eg.

httpretty.register_uri(httpretty.ALL, re.compile('http://localhost/.*'), _my_callback) or httpretty.register_uri([httpretty.GET, httpretty.POST], ....)

jamielennox avatar Sep 04 '13 02:09 jamielennox

:+1:

rosscdh avatar Oct 22 '13 10:10 rosscdh

This thing can be useful I think so too

belyak avatar Apr 29 '15 06:04 belyak