httpsurl

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package httpsurl validates service URLs before callers send credentials or device data to them.

Parse requires an absolute HTTPS URL with a hostname and rejects user information, fragments and opaque URLs. Errors omit the input because it may contain credentials. URL validation does not establish trust in the server; callers remain responsible for TLS verification and redirect policy.

Index

Constants

This section is empty.

Variables

View Source
var ErrURL = errors.New(
	"endpoint must be an absolute HTTPS URL without user information or a fragment",
)

ErrURL deliberately excludes the input, which may contain credentials.

Functions

func Parse

func Parse(raw string) (*url.URL, error)

Parse validates a server endpoint before credentials or device data are sent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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