util

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package util provides common (cross-package) utilities. It must not depend on another package in the project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocalHost added in v0.3.4

func IsLocalHost(req *http.Request) bool

IsLocalHost checks whether the destination host is explicitly local host. Note: there can be IPv6 addresses it doesn't catch.

func NormalizeURI

func NormalizeURI(uriToParse string) (*url.URL, error)

NormalizeURI ensures that the url has a scheme.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL