pub struct CgiConfig { /* private fields */ }Implementations§
Source§impl CgiConfig
impl CgiConfig
pub fn new(command: impl Into<String>) -> Self
pub fn args(self, args: Vec<String>) -> Self
pub fn working_dir(self, dir: impl Into<String>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn server_software(self, software: impl Into<String>) -> Self
pub fn server_name(self, name: impl Into<String>) -> Self
pub fn server_port(self, port: u16) -> Self
Sourcepub fn https(self, https: bool) -> Self
pub fn https(self, https: bool) -> Self
Set whether the request was received over HTTPS. When true, sets the HTTPS environment variable to “on”.
pub fn timeout(self, timeout: Duration) -> Self
pub fn inherit_env(self, vars: Vec<String>) -> Self
pub fn inherit(self, var: impl Into<String>) -> Self
Sourcepub fn script_name(self, name: impl Into<String>) -> Self
pub fn script_name(self, name: impl Into<String>) -> Self
When set, PATH_INFO will be computed as the request path minus this script name.
Sourcepub fn document_root(self, root: impl Into<String>) -> Self
pub fn document_root(self, root: impl Into<String>) -> Self
Set the document root for computing PATH_TRANSLATED. When PATH_INFO is non-empty, PATH_TRANSLATED = document_root + PATH_INFO.
pub fn pass_through_stderr(self, pass_through: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CgiConfig
impl RefUnwindSafe for CgiConfig
impl Send for CgiConfig
impl Sync for CgiConfig
impl Unpin for CgiConfig
impl UnwindSafe for CgiConfig
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