Struct solana_rpc_client::http_sender::HttpSender
source · pub struct HttpSender { /* private fields */ }
Implementations§
source§impl HttpSender
impl HttpSender
Nonblocking RpcSender
over HTTP.
sourcepub fn new<U: ToString>(url: U) -> Self
pub fn new<U: ToString>(url: U) -> Self
Create an HTTP RPC sender.
The URL is an HTTP URL, usually for port 8899, as in “http://localhost:8899”. The sender has a default timeout of 30 seconds.
sourcepub fn new_with_timeout<U: ToString>(url: U, timeout: Duration) -> Self
pub fn new_with_timeout<U: ToString>(url: U, timeout: Duration) -> Self
Create an HTTP RPC sender.
The URL is an HTTP URL, usually for port 8899.