diff options
Diffstat (limited to 'client/go/curl/curl.go')
-rw-r--r-- | client/go/curl/curl.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/go/curl/curl.go b/client/go/curl/curl.go index 9da7fbe9cac..d3b805e16da 100644 --- a/client/go/curl/curl.go +++ b/client/go/curl/curl.go @@ -28,6 +28,10 @@ type Command struct { rawArgs []string } +func (c *Command) GetUrlPrefix() string { + return c.url.Scheme + "://" + c.url.Host +} + func (c *Command) WithBodyFile(fn string) { if c.bodyInput != nil { panic("cannot use both WithBodyFile and WithBodyInput") |