- refactor(package): import path changed to github.com/h2non/gock
- fix(mock): fix race condition in mock.go file (#92)
- feat(matchers): Support custom MIME types (#88)
- Add context expiration cancellation support (#86)
- Fix regexp matching issues in headers (#59)
- NewMatcher() will now return objects that completely separate one another. (#55)
- add request Options (#49)
- fix typo: function -> func (#52)
- feat(docs): change note
- feat(docs): add net/http support
- Add Basic Auth (#47)
- Update LICENSE (#46)
- feat(version): bump to v1.0.14
- feat: add go.mod
- Add PathParam matcher (#42)
- Fix possible data race. (#41)
- Do not reset response body (#40)
- refactor(travis): remove unsupported versions for golint based on Go release policy support
- feat(gock): add gock.Observe to support inspection of the outgoing intercepted HTTP traffic (#38)
- Support multiple response headers with same name #35 (#36)
- fix(url-encoding) add exact match test in MatchPath (#34)
- fix(travis): use string notation for Go versions
- chore(LICENSE): update year ;)
- feat(docs): add additional tips and examples
- feat(gock): ignore already intercepted http.Client
- Make MatchHost case insensitive. (#31)
- refactor(docs): remove codesponsor :(
- add example when request reply with error (#28)
- feat(docs): add sponsor ad
- Add example networking partially enabled (#23)
- fix(#23): mock transport deadlock
- feat(#25, #24): use content type only if missing while matching JSON/XML
- feat(#24): add CleanUnmatchedRequests() and OffAll() public functions
- feat(version): bump to v1.0.5
- fix(store): use proper indent style
- fix(mutex): use different mutex for store
- feat(travis): add Go 1.8 CI support
- Update README to include most up to date version (#17)
- Update MatchBody() to compare if key + value pairs of JSON match regardless of order they are in. (#16)
- feat(examples): add new example for unmatch case
- refactor(docs): add pook reference
- feat(#13): adds
GetUnmatchedRequests()
andHasUnmatchedRequests()
API functions.
- fix(#11): adds
Compression()
method for output HTTP traffic body compression processing and matching.
- fix(#9): missing URL query param matcher.
- feat(version): first major version release.
- fix(#7): if error configured, RoundTripper should reply with
nil
response.
- feat(#5): support
ReplyFunc
for convenience.
- feat(api): add
IsDone()
method. - fix(responder): return mock error if present.
- feat(#4): support define request/response body from file disk.
- feat(matcher): add content type matcher helper method supporting aliases.
- feat(interceptor): add function to restore HTTP client transport.
- feat(matcher): add URL scheme matcher function.
- fix(request): ignore base slash path.
- feat(api): add Off() method for easier restore and clean up.
- feat(store): add public API for pending mocks.
- fix(matcher): body matchers no used by default.
- feat(matcher): add matcher factories for multiple cases.
- fix(params): persist query params accordingly.
- First release.