Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIPv6Unsupported ¶
IsIPv6Unsupported checks if the given error is specifically an IPv6 unsupported error. It returns true if the error is exactly ErrIPv6tError, indicating an issue with IPv6 support. Otherwise, it returns false, suggesting that the error is of a different type or nil.
Types ¶
type Url ¶
type Url interface { String() string // String returns the URL as a string. Bytes() []byte // Bytes returns the URL as a byte slice. Protocol() *httparser.Proctocol // Protocol returns a Proctocol instance representing the URL's protocol. Host() string // Host returns the host component of the URL. Port() string // Port returns the port component of the URL. Path() string // Path returns the path component of the URL. Err() error // Err returns any error encountered during URL parsing or resolution. Resolve(context.Context) // Resolve parses the URL into its components within a given context. Resource() string // Resource returns the resource of the SOCKET. Only valid for socket }
Url is an interface that defines methods for working with URLs.
Click to show internal directories.
Click to hide internal directories.