jarcoal / httpmock

HTTP mocking for Golang
http://godoc.org/github.com/jarcoal/httpmock
MIT License
1.93k stars 103 forks source link

support re-use the same response when hitting the same key(method + url) #2

Closed clsung closed 10 years ago

clsung commented 10 years ago

Current response can only be used once, and further requests will become invalid, so provide a patch to re-use the same response.

jarcoal commented 10 years ago

Thanks @clsung !

maelvls commented 5 years ago

Too bad this feature isn't available in v1 :disappointed: Is there a way to do that anyway? Edit: nvm, it is on v1 :smile: