package libp2pwebtransport

Import Path
	github.com/libp2p/go-libp2p/p2p/transport/webtransport (on go.dev)

Dependency Relation
	imports 38 packages, and imported by 2 packages


Package-Level Type Names (total 2)
/* sort by: | */
Actual [][]byte Expected []byte ( ErrCertHashMismatch) Error() string ErrCertHashMismatch : error
func WithClock(cl clock.Clock) Option func WithHandshakeTimeout(d time.Duration) Option func WithTLSClientConfig(c *tls.Config) Option func New(key ic.PrivKey, psk pnet.PSK, connManager *quicreuse.ConnManager, gater connmgr.ConnectionGater, rcmgr network.ResourceManager, opts ...Option) (tpt.Transport, error)
Package-Level Functions (total 5)
IsWebtransportMultiaddr returns true if the given multiaddr is a well formed webtransport multiaddr. Returns the number of certhashes found.
WithTLSClientConfig sets a custom tls.Config used for dialing. This option is most useful for setting a custom tls.Config.RootCAs certificate pool. When dialing a multiaddr that contains a /certhash component, this library will set InsecureSkipVerify and overwrite the VerifyPeerCertificate callback.