foxy-io 0.0.5

A configuration-driven and hyper-extensible HTTP proxy library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::error::Error;
use foxy::Foxy;
use log::LevelFilter;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let foxy = Foxy::loader()
        .with_config_file("examples/basic-proxy/config.json")
        .build().await?;

    // Start the proxy server and wait for it to complete
    foxy.start().await?;
    Ok(())
}