Documentation ¶
Index ¶
- func AppendHostToXForwardHeader(header netHttp.Header, host string)
- func CopyHeader(dst, src netHttp.Header)
- func DelHopHeaders(header netHttp.Header)
- func Extract(addr string) (string, error)
- func GetAddrAndPort() (string, int)
- func GetHostAndPortByAddr(addr net.Addr) (string, uint64)
- func GetPort() int
- func GetQuery(url string) string
- func HasPort(s string) bool
- func IPs() []string
- func RemoveEmptyPort(host string) string
- func SetCookie(w netHttp.ResponseWriter, src []*netHttp.Cookie)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyHeader ¶
func DelHopHeaders ¶
func GetAddrAndPort ¶
func HasPort ¶
Given a string of the form "host", "host:port", or "[ipv6::address]:port", return true if the string includes a port.
func RemoveEmptyPort ¶
removeEmptyPort strips the empty port in ":port" to "" as mandated by RFC 3986 Section 6.2.3.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.