aboutsummaryrefslogtreecommitdiff
path: root/gopherschwift
diff options
context:
space:
mode:
Diffstat (limited to 'gopherschwift')
-rw-r--r--gopherschwift/package.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/gopherschwift/package.go b/gopherschwift/package.go
index d6b4e7b..834d0b7 100644
--- a/gopherschwift/package.go
+++ b/gopherschwift/package.go
@@ -74,10 +74,12 @@ type backend struct {
userAgent string
}
+// EndpointURL implements the [schwift.Backend] interface.
func (g *backend) EndpointURL() string {
return g.c.Endpoint
}
+// Clone implements the [schwift.Backend] interface.
func (g *backend) Clone(newEndpointURL string) schwift.Backend {
clonedClient := *g.c
clonedClient.Endpoint = newEndpointURL
@@ -87,6 +89,7 @@ func (g *backend) Clone(newEndpointURL string) schwift.Backend {
}
}
+// Do implements the [schwift.Backend] interface.
func (g *backend) Do(req *http.Request) (*http.Response, error) {
return g.do(req, false)
}