h2non / gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
https://pkg.go.dev/github.com/h2non/gock
MIT License
2.04k stars 106 forks source link

feature request: support nock's "Repeat response n times" #118

Closed kilianc closed 2 months ago

kilianc commented 2 months ago

https://github.com/nock/nock?tab=readme-ov-file#repeat-response-n-times

Unless I missed in the docs, which will make me happy, I don't think there is a way to express a sequence of response with the current API, is that correct? If so it would be very useful to do so.

kilianc commented 2 months ago

I found the Times() API from the source code, thanks!