Skip to main content

Module config

Module config 

Source
Expand description

Configuration for a channel manager (and, therefore, channels)

ยงSemver note

Most types in this module are re-exported by arti-client.

Structsยง

ChannelConfig
Channel configuration
ChannelConfigBuilder
A builder to create an instance of ChannelConfig.
HttpConnectAuth
Authentication credentials for HTTP CONNECT proxy.

Enumsยง

ProxyProtocol
Information about what proxy protocol to use, and how to use it.
ProxyProtocolParseError
Error parsing a proxy URI string

Constantsยง

USERINFO_ENCODE_SET ๐Ÿ”’
Characters that must be percent-encoded in userinfo (RFC 3986 section 3.2.1). This includes: gen-delims (:/?#[]@) and sub-delims (!$&โ€™()*+,;=) except those allowed. For userinfo, we encode: : @ / ? # [ ] and space, plus control characters.

Functionsยง

deserialize_outbound_proxy ๐Ÿ”’
Deserialize an outbound proxy, treating empty strings as unset.
encode_userinfo ๐Ÿ”’
URL-encodes username and optional password for SOCKS proxy userinfo display.
encode_userinfo_http ๐Ÿ”’
URL-encodes username and optional password for HTTP CONNECT proxy userinfo display.
encode_userinfo_with_scheme ๐Ÿ”’
URL-encodes username and optional password for a given scheme and address.
percent_encode_userinfo ๐Ÿ”’
Percent-encode a string for use in URI userinfo (username or password).