Documentation ¶
Overview ¶
Package http is used to implement RPC over HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
Resolver resolves url to address.
func NewDefaultResolver ¶
func NewDefaultResolver(options ...ResolverOption) Resolver
NewDefaultResolver creates a default resolver.
type ResolverOption ¶ added in v0.10.0
type ResolverOption func(cfg *resolverConfig)
func WithIPv4 ¶ added in v0.10.0
func WithIPv4() ResolverOption
WithIPv4 configures the resolver to resolve ipv4 address only.
func WithIPv6 ¶ added in v0.10.0
func WithIPv6() ResolverOption
WithIPv6 configures the resolver to resolve ipv6 address only.
Click to show internal directories.
Click to hide internal directories.