tiny-proxy 0.3.0

A high-performance HTTP reverse proxy server written in Rust with SSE support, connection pooling, and configurable routing
Documentation
use clap::Parser;

/// Command line arguments for the proxy server
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
pub struct Cli {
    /// Path to configuration file (Caddy-like format)
    #[arg(short, long, default_value = "./file.caddy")]
    pub config: String,

    /// Address for proxy server to listen on
    #[arg(short = 'a', long, default_value = "127.0.0.1:8080")]
    pub addr: String,

    /// Max concurrent connections (default: CPU cores * 256, use 0 for default)
    #[arg(long, default_value_t = 0)]
    pub max_concurrency: usize,

    /// Enable management API server (requires 'api' feature)
    #[arg(long)]
    pub enable_api: bool,

    /// Address for API server to listen on
    #[arg(long, default_value = "127.0.0.1:8081")]
    pub api_addr: String,
}