Expand description
Embeddable tunnel client library for burrow.
Expose a local HTTP server to the internet through a public subdomain. Automatically reconnects with exponential backoff if the connection drops.
§Example
use burrow_client::TunnelClient;
use std::net::SocketAddr;
let local_addr: SocketAddr = "127.0.0.1:3000".parse()?;
let handle = TunnelClient::new("wss://new.meilisearch.link", local_addr)
.subdomain("myapp")
.connect()
.await?;
println!("Tunnel live at: {}", handle.url());
tokio::signal::ctrl_c().await?;
handle.close().await;Re-exports§
pub use burrow_core;
Structs§
- Tunnel
Client - Builder for configuring and connecting a tunnel client.
- Tunnel
Handle - A handle to a running tunnel. Dropping it will close the tunnel.