h2non / gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

Home Page:https://pkg.go.dev/github.com/h2non/gock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kilianc opened this issue · comments

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.

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