MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / serverURL

Function serverURL

pkg/interop/client.go:64–75  ·  view source on GitHub ↗
(scheme, fqdn, path string, port uint32)

Source from the content-addressed store, hash-verified

62}
63
64func serverURL(scheme, fqdn, path string, port uint32) string {
65 if scheme == "" {
66 scheme = "https"
67 }
68 if port == 0 {
69 port = defaultHTTPSPort
70 }
71 if path != "" {
72 path = fmt.Sprintf("/%s", path)
73 }
74 return fmt.Sprintf("%s://%s:%d%s", scheme, fqdn, port, path)
75}
76
77func newHTTPRequest(
78 url string, pld any, headers map[string]string, username, password string,

Callers 1

exchangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected