murgamu 0.8.4

A NestJS-inspired web framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, Clone)]
pub struct EnvServerDefaults {
	pub host: String,
	pub port: u16,
	pub enable_cors: bool,
	pub enable_logging: bool,
	pub log_requests: bool,
	pub graceful_shutdown: bool,
	pub keep_alive_secs: u64,
}

impl EnvServerDefaults {
	pub fn addr(&self) -> String {
		format!("{}:{}", self.host, self.port)
	}
}