MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetPathWithHost

Method GetPathWithHost

pkg/remote/connparse/connparse.go:44–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (c *Connection) GetPathWithHost() string {
45 if c.Host == "" {
46 return ""
47 }
48 if c.Path == "" {
49 return c.Host
50 }
51 if strings.HasPrefix(c.Path, "/") {
52 return c.Host + c.Path
53 }
54 return c.Host + "/" + c.Path
55}
56
57func (c *Connection) GetFullURI() string {
58 return c.Scheme + "://" + c.GetPathWithHost()

Callers 5

GetFullURIMethod · 0.95
TestParseURI_BasicS3Function · 0.80
GetParentPathFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestParseURI_BasicS3Function · 0.64