Documentation
¶
Overview ¶
Package normalize provides URL normalization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawURL ¶
RawURL normalizes the given raw URL.
- Uppercase percent-encoded triplets.
- Lowercase the scheme and hostname.
- Lowercase the username.
- Decode percent-encoded triplets.
- Removes dot segments.
- Converts an empty path to `/`.
- Removes the default port (:80, :443).
- Removes `?` when query is empty.
- Remove the fragment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.