kubernetes/vendor/github.com/go-openapi/jsonreference/internal/normalize_url.go

const defaultHTTPPort

const defaultHTTPSPort

var rxPort

var rxDupSlashes

// NormalizeURL will normalize the specified URL
// This was added to replace a previous call to the no longer maintained purell library:
// The call that was used looked like the following:
//
//	url.Parse(purell.NormalizeURL(parsed, purell.FlagsSafe|purell.FlagRemoveDuplicateSlashes))
//
// To explain all that was included in the call above, purell.FlagsSafe was really just the following:
//   - FlagLowercaseScheme
//   - FlagLowercaseHost
//   - FlagRemoveDefaultPort
//   - FlagRemoveDuplicateSlashes (and this was mixed in with the |)
//
// This also normalizes the URL into its urlencoded form by removing RawPath and RawFragment.
func NormalizeURL(u *url.URL) {}

func lowercaseScheme(u *url.URL) {}

func lowercaseHost(u *url.URL) {}

func removeDefaultPort(u *url.URL) {}

func removeDuplicateSlashes(u *url.URL) {}