Discover Packages
github.com/braedonsaunders/ether
internal
frontend
kit
route
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Nov 1, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package route provides an enumerable case-insensitive protocol router.
Query returns all values for keys matching name case-insensitively.
func (*Router) Handle ¶
Handle registers a literal/parameter route. Parameters use {name}; a final
{name...} captures the remaining path. Duplicate patterns are rejected.
SetUnmatched installs an optional observer for 404 and 405 responses. The
observer is called without the router lock and must redact and rate-limit
any request information it records.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.