adapterurl

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(rawURL string, allowLoopbackHTTP bool) error

Validate checks a URL provided by an untrusted adapter. Non-loopback URLs must use HTTPS. Loopback HTTP requires explicit opt-in.

func ValidateFileRoot

func ValidateFileRoot(filePath, fileRoot string) error

ValidateFileRoot checks that filePath is contained within fileRoot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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