pub struct FastCgiConfig {
pub address: String,
pub root: PathBuf,
pub index: Vec<String>,
pub split_path: String,
pub front_controller: String,
pub params: Vec<(String, String)>,
pub connect_timeout: Duration,
pub read_timeout: Duration,
pub max_idle: usize,
}Expand description
Settings of a FastCgi handler.
Fields§
§address: StringThe FastCGI server.
root: PathBufDocument root: scripts and static files live under it.
index: Vec<String>Index scripts of a directory (default index.php).
split_path: StringThe script extension that splits PATH_INFO off (default .php).
front_controller: StringScript for paths that match nothing (default index.php; empty: 404).
params: Vec<(String, String)>Extra CGI variables (APP_ENV = "prod").
connect_timeout: Duration§read_timeout: DurationPer read/write on the connection (a slow script waits this long).
max_idle: usizeIdle connections kept per server.
Implementations§
Source§impl FastCgiConfig
impl FastCgiConfig
Trait Implementations§
Source§impl Clone for FastCgiConfig
impl Clone for FastCgiConfig
Auto Trait Implementations§
impl Freeze for FastCgiConfig
impl RefUnwindSafe for FastCgiConfig
impl Send for FastCgiConfig
impl Sync for FastCgiConfig
impl Unpin for FastCgiConfig
impl UnsafeUnpin for FastCgiConfig
impl UnwindSafe for FastCgiConfig
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