I want to do something like https://golang.org/pkg/net/http/httptest/#example_Server
to stub a http response when the module or function can’t be mocked.
You can see in golang doc, that I can have ts.URL()
to replace my external service URL, hence I can do response stubbing easily.
Is there any way doing in elixir? Or similar libraries?