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