(scheme, fqdn, path string, port uint32)
| 62 | } |
| 63 | |
| 64 | func 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 | |
| 77 | func newHTTPRequest( |
| 78 | url string, pld any, headers map[string]string, username, password string, |