ferrotunnel-http-0.6.0 has been yanked.
ferrotunnel-http
HTTP ingress and proxy for FerroTunnel.
Overview
This crate provides HTTP handling for the tunnel:
HttpIngress- Server-side HTTP listener that routes requests through tunnelsHttpProxy- Client-side proxy that forwards tunneled requests to local services
Components
HttpIngress (Server)
Hyper-based HTTP server that:
- Listens for incoming HTTP requests
- Routes requests to connected tunnel clients
- Supports HTTP/1.1 and WebSocket upgrades
HttpProxy (Client)
Handles tunneled HTTP requests by:
- Receiving virtual streams from the multiplexer
- Connecting to local services
- Proxying data bidirectionally
Usage
use ;
// Server-side: Create ingress
let ingress = new;
ingress.start.await?;
// Client-side: Create proxy
let proxy = new;
proxy.handle_stream;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.