WeTransfer / Mocker

Mock Alamofire and URLSession requests without touching your code implementation
MIT License
1.12k stars 96 forks source link

Response based on parameters or headers #79

Closed AlexZd closed 3 years ago

AlexZd commented 3 years ago

Hello,

Is there way to get 2 different responses for same url? i'm using your lib to test OAuth interceptor, hence I need to call request and get 2 different responses.

For example i have dummy .get request /dummy which will return 401 in case "token" header does not exist, but it will return 200 in case token == some value.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.