blobPrefix returns the URL prefix before the blobref hash. Example: http://foo.com:3179/bs/camli or http://foo.com:3179/share
()
| 940 | // blobPrefix returns the URL prefix before the blobref hash. |
| 941 | // Example: http://foo.com:3179/bs/camli or http://foo.com:3179/share |
| 942 | func (c *Client) blobPrefix() (string, error) { |
| 943 | pfx, err := c.prefix() |
| 944 | if err != nil { |
| 945 | return "", err |
| 946 | } |
| 947 | if !c.isSharePrefix { |
| 948 | pfx += "/camli" |
| 949 | } |
| 950 | return pfx, nil |
| 951 | } |
| 952 | |
| 953 | // discoRoot returns the user defined server for this client. It prepends "https://" if no scheme was specified. |
| 954 | func (c *Client) discoRoot() string { |