# Functions
APIEndpoint returns the REST API endpoint prefix for a GitLab instance :).
Default returns the host name of the default GitLab instance.
No description provided by the author
DefaultProtocol returns the protocol of the default GitLab instance.
GraphQLEndpoint returns the GraphQL API endpoint prefix for a GitLab instance :).
No description provided by the author
IsSelfHosted reports whether a non-normalized host name looks like a Self-hosted GitLab instance staging.gitlab.com is considered self-hosted.
NormalizeHostname returns the canonical host name of a GitLab instance Note: GitLab does not allow subdomains on gitlab.com https://gitlab.com/gitlab-org/gitlab/-/issues/26703.
OverridableDefault is like Default, except it is overridable by the GITLAB_HOST environment variable.
OverridableDefaultProtocol is like DefaultProtocol, except it is overridable by the protocol found in the value of the GITLAB_HOST environment variable if a fully qualified URL is given as value.
OverrideDefault overrides the value returned from OverridableDefault.
OverrideDefaultProtocol overrides the value returned from OverridableDefaultProtocol.
StripHostProtocol strips the url protocol and returns the hostname and the protocol.