|
|
|
@ -39,7 +39,7 @@ pub struct Request {
|
|
|
|
|
certificate: Option<[u8; 32]>,
|
|
|
|
|
trailing_segments: Option<Vec<String>>,
|
|
|
|
|
#[cfg(feature="user_management")]
|
|
|
|
|
manager: UserManager,
|
|
|
|
|
manager: &'static UserManager,
|
|
|
|
|
#[cfg(feature = "scgi_srv")]
|
|
|
|
|
headers: HashMap<String, String>,
|
|
|
|
|
#[cfg(feature = "scgi_srv")]
|
|
|
|
@ -80,7 +80,7 @@ impl Request {
|
|
|
|
|
#[cfg(feature = "scgi_srv")]
|
|
|
|
|
headers: HashMap<String, String>,
|
|
|
|
|
#[cfg(feature="user_management")]
|
|
|
|
|
manager: UserManager,
|
|
|
|
|
manager: &'static UserManager,
|
|
|
|
|
) -> Result<Self> {
|
|
|
|
|
#[cfg(feature = "scgi_srv")]
|
|
|
|
|
#[allow(clippy::or_fun_call)] // Lay off it's a macro
|
|
|
|
@ -267,8 +267,8 @@ impl Request {
|
|
|
|
|
/// Expose the server's UserManager
|
|
|
|
|
///
|
|
|
|
|
/// Can be used to query users, or directly access the database
|
|
|
|
|
pub fn user_manager(&self) -> &UserManager {
|
|
|
|
|
&self.manager
|
|
|
|
|
pub fn user_manager(&self) -> &'static UserManager {
|
|
|
|
|
self.manager
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Attempt to rewrite an absolute URL against the base path of the SCGI script
|
|
|
|
|