ferrotunnel-http-0.9.5 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 tunnelsTcpIngress- Server-side TCP listener for raw socket tunnelingHttpProxy- 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
TcpIngress (Server)
Socket listener that:
- Accepts raw TCP connections
- Routes traffic through the tunnel protocol
- Protocol-agnostic (supports Database, SSH, etc.)
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;
let tcp_ingress = new;
try_join!?;
// 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.