Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update ⬆️ golang module github.com/jarcoal/httpmock to v…
…1.3.0 (#69) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/jarcoal/httpmock](https://togithub.com/jarcoal/httpmock) | require | minor | `v1.2.0` -> `v1.3.0` | --- ### Release Notes <details> <summary>jarcoal/httpmock</summary> ### [`v1.3.0`](https://togithub.com/jarcoal/httpmock/releases/tag/v1.3.0) [Compare Source](https://togithub.com/jarcoal/httpmock/compare/v1.2.0...v1.3.0) New features: - new [matcher feature](https://pkg.go.dev/github.com/jarcoal/httpmock#Matcher), allowing to create a [Responder](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder) based on [net/http.Request](https://pkg.go.dev/net/http#Request) content (header or body for example), so not only on method and URL as before. See the following new registering functions & methods: - [RegisterMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#RegisterMatcherResponder) & [MockTransport.RegisterMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#MockTransport.RegisterMatcherResponder), - [RegisterRegexpMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#RegisterRegexpMatcherResponder) & [MockTransport.RegisterRegexpMatcherResponder](https://pkg.go.dev/github.com/jarcoal/httpmock#MockTransport.RegisterRegexpMatcherResponder), - [RegisterMatcherResponderWithQuery](https://pkg.go.dev/github.com/jarcoal/httpmock#RegisterMatcherResponderWithQuery) & [MockTransport.RegisterMatcherResponderWithQuery](https://pkg.go.dev/github.com/jarcoal/httpmock#MockTransport.RegisterMatcherResponderWithQuery); - add following [Responder](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder) methods, allowing to easily add some headers to the returned [net/http.Response](https://pkg.go.dev/net/http#Response) without the need to craft a [Responder](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder) by hand: - [SetContentLength](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder.SetContentLength), - [HeaderAdd](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder.HeaderAdd), - [HeaderSet](https://pkg.go.dev/github.com/jarcoal/httpmock#Responder.HeaderSet). Miscellaneous: - documentation now uses new go1.19 doc features; - go minimal version required is now 1.13; - CI tests using go1.20 & golangci-lint v1.51.0. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM0LjEwMC4wIn0=--> Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com>
- Loading branch information