mirror of
https://github.com/edu4rdshl/fhc.git
synced 2026-07-17 23:24:50 +00:00
Use a struct for library options.
Signed-off-by: Eduard Tolosa <edu4rdshl@protonmail.com>
This commit is contained in:
parent
98233a98b8
commit
c5c4b28b2c
1 changed files with 16 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
use std::collections::HashSet;
|
||||
|
||||
#[allow(clippy::upper_case_acronyms)]
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash, Default)]
|
||||
pub struct HTTPFilters {
|
||||
|
|
@ -24,3 +26,17 @@ pub struct HttpData {
|
|||
pub html_file_path: String,
|
||||
pub screenshot_data: Vec<u8>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct LibOptions {
|
||||
pub hosts: HashSet<String>,
|
||||
pub client: reqwest::Client,
|
||||
pub user_agents: Vec<String>,
|
||||
pub retries: usize,
|
||||
pub threads: usize,
|
||||
pub return_filters: bool,
|
||||
pub conditional_response_code: u16,
|
||||
pub show_status_codes: bool,
|
||||
pub assign_response_data: bool,
|
||||
pub quiet_flag: bool,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue