Open LukeMathWalker opened 1 year ago
I have bumped into users trying the following:
Mock::given(path("https://domain.com/abcd"));
with an expectation that it will match incoming requests for /abcd. In reality, they should write:
/abcd
Mock::given(path("/abcd"));
to achieve the desired outcome.
path should panic if the input contains a host, with an helpful suggestion pointing at the right usage pattern.
path
shouldn't this be closed? #108 has been merged
I have bumped into users trying the following:
with an expectation that it will match incoming requests for
/abcd
. In reality, they should write:to achieve the desired outcome.
path
should panic if the input contains a host, with an helpful suggestion pointing at the right usage pattern.