zhongwencool / maxwell

Maxwell is an HTTP client which support for middleware and multiple adapters.
MIT License
110 stars 17 forks source link

Add module to help with mocking response from Maxwell #60

Open secretworry opened 7 years ago

secretworry commented 7 years ago

I think Maxwell should provide a module similar to Plug.Test to help with mocking response from Maxwell. To mock response involves updating state, setting up status, setting up content-type etc, which is not a trivial job. And mocking a file response would be even harder. So, IMHO, providing a module to deal with those subtle details will definitely help.