Skip to main content

hpx_emulation/
lib.rs

1#![deny(unused)]
2#![deny(unsafe_code)]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![cfg_attr(test, deny(warnings))]
5#![cfg_attr(not(test), warn(unused_crate_dependencies))]
6//! # hpx-emulation
7//!
8//! Browser emulation utilities for hpx.
9//!
10//! This crate provides browser emulation capabilities for the `hpx` HTTP client:
11//!
12//! - **Emulation**: Browser emulation profiles (TLS fingerprinting, HTTP/2 settings).
13//! - **Fingerprint**: Structured browser fingerprint types for comparison, testing,
14//!   and custom profile creation.
15
16use hpx as _;
17#[cfg(feature = "emulation-serde")]
18use serde as _;
19
20#[cfg(feature = "emulation")]
21pub mod emulation;
22
23#[cfg(feature = "emulation")]
24pub use self::emulation::{Emulation, EmulationOS, EmulationOption};
25
26/// Structured browser fingerprint types.
27///
28/// Provides type-safe, comparable representations of browser TLS/HTTP2/header
29/// fingerprints, along with utilities for header composition, fingerprint
30/// diffing, and named TLS presets.
31pub mod fingerprint;