mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-16 02:22:14 -04:00
Bumps [github.com/testcontainers/testcontainers-go/modules/opensearch](https://github.com/testcontainers/testcontainers-go) from 0.41.0 to 0.42.0. - [Release notes](https://github.com/testcontainers/testcontainers-go/releases) - [Commits](https://github.com/testcontainers/testcontainers-go/compare/v0.41.0...v0.42.0) --- updated-dependencies: - dependency-name: github.com/testcontainers/testcontainers-go/modules/opensearch dependency-version: 0.42.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
24 lines
352 B
Go
24 lines
352 B
Go
package client
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type responseHookTransport struct {
|
|
base http.RoundTripper
|
|
hooks []ResponseHook
|
|
}
|
|
|
|
func (t *responseHookTransport) RoundTrip(req *http.Request) (*http.Response, error) {
|
|
resp, err := t.base.RoundTrip(req)
|
|
if err != nil {
|
|
return resp, err
|
|
}
|
|
|
|
for _, h := range t.hooks {
|
|
h(resp)
|
|
}
|
|
|
|
return resp, nil
|
|
}
|