mirror of
https://github.com/edu4rdshl/fhc.git
synced 2026-07-17 23:24:50 +00:00
24 lines
633 B
Rust
24 lines
633 B
Rust
#[allow(clippy::upper_case_acronyms)]
|
|
#[derive(Clone, Debug, Eq, PartialEq, Hash, Default)]
|
|
pub struct HTTPFilters {
|
|
pub bad_http_lengths: Vec<String>,
|
|
pub bad_words_numbers: Vec<String>,
|
|
pub bad_lines_numbers: Vec<String>,
|
|
}
|
|
|
|
#[derive(Clone, Default)]
|
|
pub struct HttpData {
|
|
pub http_status: String,
|
|
pub status_code: u16,
|
|
pub host_url: String,
|
|
pub final_url: String,
|
|
pub protocol: String,
|
|
pub title: String,
|
|
pub content_type: String,
|
|
pub body: String,
|
|
pub headers: String,
|
|
pub content_length: u64,
|
|
pub words_count: usize,
|
|
pub lines: usize,
|
|
pub bad_data: HTTPFilters,
|
|
}
|