MCPcopy Create free account
hub / github.com/ddev/ddev / GetHTTPSURL

Method GetHTTPSURL

pkg/ddevapp/ddevapp.go:3463–3476  ·  view source on GitHub ↗

GetHTTPSURL returns the primary HTTPS URL for an app.

()

Source from the content-addressed store, hash-verified

3461
3462// GetHTTPSURL returns the primary HTTPS URL for an app.
3463func (app *DdevApp) GetHTTPSURL() string {
3464 url := ""
3465 if !IsRouterDisabled(app) {
3466 url = "https://" + app.GetHostname()
3467 p := app.GetPrimaryRouterHTTPSPort()
3468 // If the HTTPS port is 443 (default), it doesn't get included in URL
3469 if p != "443" {
3470 url = url + ":" + p
3471 }
3472 } else {
3473 url = app.GetWebContainerDirectHTTPSURL()
3474 }
3475 return url
3476}
3477
3478// GetAllURLs returns an array of all the URLs for the project
3479func (app *DdevApp) GetAllURLs() (httpURLs []string, httpsURLs []string, allURLs []string) {

Callers 6

DescribeMethod · 0.95
runNetworkAliasesTestFunction · 0.95
TestGetLocalHTTPResponseFunction · 0.95
TestHttpsRedirectionFunction · 0.80
TestUseEphemeralPortFunction · 0.80
TestCmdListFunction · 0.80

Calls 4

GetHostnameMethod · 0.95
IsRouterDisabledFunction · 0.85

Tested by 5

runNetworkAliasesTestFunction · 0.76
TestGetLocalHTTPResponseFunction · 0.76
TestHttpsRedirectionFunction · 0.64
TestUseEphemeralPortFunction · 0.64
TestCmdListFunction · 0.64