spin_factor_outbound_http/runtime_config.rs
1#[cfg(feature = "spin-cli")]
2pub mod spin;
3
4/// Runtime configuration for outbound HTTP.
5#[derive(Debug)]
6pub struct RuntimeConfig {
7 /// If true, enable connection pooling and reuse.
8 pub connection_pooling_enabled: bool,
9 /// If set, limits the number of concurrent outbound connections.
10 pub max_concurrent_connections: Option<usize>,
11}
12
13impl Default for RuntimeConfig {
14 fn default() -> Self {
15 Self {
16 connection_pooling_enabled: true,
17 max_concurrent_connections: None,
18 }
19 }
20}