package internal

import "github.com/go-openapi/jsonreference/internal"

Index

Functions

func NormalizeURL

func NormalizeURL(u *url.URL)

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:

This also normalizes the URL into its urlencoded form by removing RawPath and RawFragment.

Source Files

normalize_url.go

Version
v0.21.0 (latest)
Published
Mar 9, 2024
Platform
windows/amd64
Imports
3 packages
Last checked
2 hours ago

Tools for package owners.