Mocker icon indicating copy to clipboard operation
Mocker copied to clipboard

Option to ignore URLs that match a prefix

Open bwhtmn opened this issue 10 months ago • 0 comments

Resolves #93.

Extend the Mocker's ignore rules to have an option to ignore any URLs that start with a specific prefix. This expands on existing functionality that has ignore rules for ignoring URLs that match exactly, or matching the URL excluding the query.

If this PR is approved, it may be nice to consider a follow-up PR to make a similar change to the Mock struct, migrating its use of ignoreQuery to also use a URLMatchType approach. If this is of interest to the repo maintainers, I could open an issue for further discussion, for example on how to deal the proliferation of public initializers as mentioned here https://github.com/WeTransfer/Mocker/pull/140#issuecomment-1315937869

bwhtmn avatar Apr 19 '24 16:04 bwhtmn