burrow-client
Embeddable Rust library to expose a local HTTP server to the internet through a burrow tunnel. Get a public URL like https://myapp.meilisearch.link forwarding to localhost:3000.
Install
[]
= "0.1"
= { = "1", = ["full"] }
Usage
use TunnelClient;
use SocketAddr;
async
API
TunnelClient — builder
| Method | Description |
|---|---|
new(server_url, local_addr) |
Create a client targeting the given server and local address |
.token(token) |
Set an auth token |
.subdomain(name) |
Request a specific subdomain |
.connect().await |
Connect and return a TunnelHandle |
TunnelHandle — running tunnel
| Method | Description |
|---|---|
.url() |
The assigned public URL |
.close().await |
Gracefully shut down the tunnel |
Features
- Automatic reconnection with exponential backoff (1s to 60s)
- Concurrent request multiplexing over a single WebSocket
- Optional authentication and subdomain selection
License
MIT