use std::time::Instant;
use url::Url;
pub mod peer_stat;
pub mod request_impl;
#[cfg(test)]
mod tests;
pub use peer_stat::PeerStat;
pub use request_impl::{
DEFAULT_FILE, MAX_REDIRECT, METHOD_GET, METHOD_HEAD, is_absolute_uri, remove_fragment,
};
#[derive(Debug, Clone)]
pub struct Request {
pub(super) parsed_url: Url,
pub(super) host: String,
pub(super) protocol: String,
pub(super) port: u16,
pub(super) ipv6_literal_address: bool,
pub(super) uri: String,
pub(super) current_uri: String,
pub(super) referer: String,
pub(super) method: String,
pub(super) connected_hostname: String,
pub(super) connected_addr: String,
pub(super) connected_port: u16,
pub(super) try_count: u32,
pub(super) redirect_count: u32,
pub(super) supports_persistent_connection: bool,
pub(super) keep_alive_hint: bool,
pub(super) pipelining_hint: bool,
pub(super) max_pipelined_request: u32,
pub(super) peer_stat: Option<PeerStat>,
pub(super) removal_requested: bool,
pub(super) wake_time: Instant,
pub(super) reset_try_count_after_wake: bool,
}