jsonrpc/http/mod.rs
1//! HTTP transport modules.
2
3#[cfg(feature = "simple_http")]
4pub mod simple_http;
5
6#[cfg(feature = "minreq_http")]
7pub mod minreq_http;
8
9/// The default TCP port to use for connections.
10/// Set to 8332, the default RPC port for bitcoind.
11pub const DEFAULT_PORT: u16 = 8332;
12
13/// The Default SOCKS5 Port to use for proxy connection.
14/// Set to 9050, the default RPC port for tor.
15// Currently only used by `simple_http` module, here for consistency.
16#[cfg(feature = "proxy")]
17pub const DEFAULT_PROXY_PORT: u16 = 9050;