Documentation
¶
Overview ¶
Package relayurl applies NIP-42-flavored URL normalization for the purpose of comparing a client-supplied AUTH `relay` tag against the relay's configured Auth.RelayURL. NIP-42 says: "URL normalization techniques can be applied. For most cases just checking if the domain name is correct should be enough."
We canonicalize scheme + host (lowercase), strip default ports (443 for wss/https, 80 for ws/http), and strip a single trailing slash from the path. We don't go all the way to "domain only" so a relay running on a non-standard path or shared host can't accept AUTH addressed elsewhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.