pub enum ActionConfig {
Proxy {
upstream: String,
connect_timeout_ms: u64,
read_timeout_ms: u64,
strip_path_prefix: Option<String>,
add_path_prefix: Option<String>,
upstream_host: UpstreamHost,
},
Grpc {
upstream: String,
connect_timeout_ms: u64,
read_timeout_ms: u64,
},
Static {
root: String,
index: Vec<String>,
},
Redirect {
location: String,
status: u16,
},
Respond {
status: u16,
body: String,
content_type: String,
},
FastCgi(Box<FastCgiAction>),
Mcp(Box<McpGatewayConfig>),
A2a(Box<A2aGatewayConfig>),
Llm(Box<LlmConfig>),
Unknown(String),
}Available on non-WebAssembly only.
Variants§
Proxy
Fields
§
upstream_host: UpstreamHostThe Host sent upstream (preserve_host, upstream_host).
Grpc
Static
Redirect
Respond
FastCgi(Box<FastCgiAction>)
FastCGI (crate::fastcgi): php-fpm and other FastCGI servers.
Mcp(Box<McpGatewayConfig>)
The MCP gateway (mcp_gateway).
A2a(Box<A2aGatewayConfig>)
The A2A gateway (a2a_gateway).
Llm(Box<LlmConfig>)
The LLM proxy (llm).
Unknown(String)
Trait Implementations§
Source§impl Clone for ActionConfig
impl Clone for ActionConfig
Auto Trait Implementations§
impl Freeze for ActionConfig
impl RefUnwindSafe for ActionConfig
impl Send for ActionConfig
impl Sync for ActionConfig
impl Unpin for ActionConfig
impl UnsafeUnpin for ActionConfig
impl UnwindSafe for ActionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more