Closed tkohegyi closed 8 years ago
condition: checks if specific request was cached already properly, if yes: stub it, if not, caches the request and notify response interceptor to cache the response. response interceptor: when response arrived, checks if need to be cached (condition will set it), if yes, cache it
further improvement possibilities:
This commit actually belongs here https://github.com/epam/Wilma/commit/d1ff29b9a77a9ac01dab9f2e723bc7a574487aba
ShortCircuit - in case a request has happened before, and the answer is known, use the previously recorded answer (so stub it), otherwise act as proxy and record the answer - next time can be used.