diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-10-18 19:39:07 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-10-18 19:39:07 +0200 |
| commit | d2de069dd272447d0709beccd5afda7431a9021e (patch) | |
| tree | 9ccdd31d840c556a6ec2181422565fca5e0671dc /pathrouter | |
| parent | 29b3b63b404c6a2cec28ff5eb067efe0b054a37f (diff) | |
| download | go-gg-d2de069dd272447d0709beccd5afda7431a9021e.tar.gz | |
pathrouter: add TODOs for APIs that I want to add
Diffstat (limited to 'pathrouter')
| -rw-r--r-- | pathrouter/matcher.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pathrouter/matcher.go b/pathrouter/matcher.go index 0ddd7f6..4dd3550 100644 --- a/pathrouter/matcher.go +++ b/pathrouter/matcher.go @@ -79,6 +79,10 @@ var ( _ url.URL ) +// TODO: new Matcher that introduces a Middleware which runs if a contained route matches (similar to how Variable() modifies routingContext on successful accept) +// TODO: store typed precomputed values in routingContext (func ComputedValue[T any](*http.Request) T and SetComputedValue analogously) +// TODO: then add Middleware variant that computes a value as func(*http.Request) T (e.g. to extract AuthN information from headers into an object of type Session etc.) + // Matcher is the common type for any actor that can inspect the path of a request URL (or a suffix of it) // and either accept or decline to handle the request. // |
