Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WS = by("ws://") WSS = by("wss://") HTTP = by("http://") HTTPS = by("https://") )
Functions ¶
func HTTPURL ¶
func HTTPURL[V st | by](v V) (b by)
HTTPURL normalizes the URL for such as fetching relay info.
- Adds https:// to addresses without a port, or with 443 that have no protocol prefix
- Adds http:// to addresses with any other port
- Converts ws/s to http/s
Types ¶
Click to show internal directories.
Click to hide internal directories.