tiny_proxy/proxy/types.rs
1/// Result of directive processing
2#[derive(Debug, Clone)]
3pub enum ActionResult {
4 Respond {
5 status: u16,
6 body: String,
7 },
8 ReverseProxy {
9 backend_url: String,
10 path_to_send: String,
11 connect_timeout: Option<u64>,
12 read_timeout: Option<u64>,
13 },
14 Redirect {
15 status: u16,
16 url: String,
17 },
18}