MCPcopy Index your code
hub / github.com/SignTools/SignTools / getBaseUrl

Function getBaseUrl

main.go:471–483  ·  view source on GitHub ↗
(c echo.Context)

Source from the content-addressed store, hash-verified

469}
470
471func getBaseUrl(c echo.Context) string {
472 var host = ""
473 if value := c.Request().Header.Get("X-Forwarded-Host"); value != "" {
474 host = value
475 } else {
476 host = c.Request().Host
477 }
478 serverUrl := url.URL{
479 Scheme: c.Scheme(),
480 Host: host,
481 }
482 return serverUrl.String()
483}
484
485func makeManifest(baseUrl string, app storage.App) ([]byte, error) {
486 t, err := textTemplate.New("").Funcs(

Callers 2

renderInstallFunction · 0.85
getManifestFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected