Skip to main content

try_load_profiles_json

Function try_load_profiles_json 

pub fn try_load_profiles_json(
    bytes: &[u8],
) -> Result<Vec<UserAgentProfile>, Box<dyn Error + Send + Sync>>
Available on crate features std and ua only.
Expand description

Load a JSON array of captured user-agent profile rows.

Rows with the same User-Agent are merged by filling fields that were not observed in another row. The resulting database remains strict: every merged profile must contain the HTTP/1, HTTP/2 and TLS components required by UserAgentProfile. No embedded or synthetic data is used to fill gaps.