Closed meetromb closed 4 years ago
This would be a breaking change and make the API inconsistent, I think it would be better if there was a separate way to define what should be done when no matching handler is found. Maybe this could be an option that is provided when the mock adapter is created, what do you think?
This would be a breaking change and make the API inconsistent, I think it would be better if there was a separate way to define what should be done when no matching handler is found. Maybe this could be an option that is provided when the mock adapter is created, what do you think?
I corrected this remark in the request #237. Can you check it out?
Let's continue this in #237.
Example of a problem:
In this case every request will be forwarded to origin instance.
According to the documentation you need to do this:
But this is inconvenient, because the code can be in different files and run out of order. This PR fixes this.