url

package
v5.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package url contains the utility functions for URL processing

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyAthenzJwksURL = errors.New("Athenz JWK Set URL is empty")

ErrEmptyAthenzJwksURL is "Athenz JWK Set URL is empty"

View Source
var ErrUnsupportedScheme = errors.New("Unsupported scheme, only support HTTP or HTTPS")

ErrUnsupportedScheme is "Unsupported scheme, only support HTTP or HTTPS"

Functions

func HasScheme

func HasScheme(url string) bool

HasScheme check if url has any scheme

func TrimHTTPScheme

func TrimHTTPScheme(url string) string

TrimHTTPScheme trim the URL scheme

Types

This section is empty.

Jump to

Keyboard shortcuts

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