Documentation
¶
Index ¶
- func CompactHeadersMiddleware(next http.Handler, keys []string) http.Handler
- func EnvAltSvc(fallback string) string
- func EnvCert(fallback string) string
- func EnvHost(fallback string) string
- func EnvKey(fallback string) string
- func EnvPort(fallback string) string
- func EnvUI(fallback string) string
- func ExtractAltSvcEndpoints(h http.Header, protocolId string) []string
- func ExtractURLPort(u *url.URL) string
- func Graft(base, alt string) string
- func Hyperlink(name, url string) string
- func MaybeHyperlink(l string) string
- func ToIdna(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactHeadersMiddleware ¶ added in v0.0.5
func ExtractAltSvcEndpoints ¶
ExtractAltSvcH3Endpoints reads Alt-Svc header returns a list of [host]:port endpoints
func ExtractURLPort ¶
ExtractURLPort returns the :port part from URL.Host (host[:port])
An empty string is returned if no port is found
func Hyperlink ¶
Print Hyperlink via OSC 8 ansi sequence. The syntax is: 'OSC 8 ; params ; url ST text OSC 8 ; ; ST' for more info see https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
func MaybeHyperlink ¶
MaybeHyperlink turns input into ANSI hyperlink when stdin is a tty
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.