parser

package
v0.0.0-...-9fb6cf1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIPv6Unsupported

func IsIPv6Unsupported(e error) bool

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL