elif-security 0.1.0

Security middleware and utilities for the elif.rs web framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! CSRF (Cross-Site Request Forgery) protection middleware
//!
//! Placeholder implementation - will be completed in Phase 3.2

pub use crate::config::CsrfConfig;

/// CSRF middleware (placeholder for Phase 3.2)
#[derive(Debug, Clone)]
pub struct CsrfMiddleware {
    _config: CsrfConfig,
}

impl CsrfMiddleware {
    /// Create new CSRF middleware with configuration
    pub fn new(config: CsrfConfig) -> Self {
        Self { _config: config }
    }
}