Skip to main content

random_user_agent

Function random_user_agent 

Source
pub fn random_user_agent() -> String
Expand description

Generates a random user-agent string from a curated list of common browsers.

Useful for web scraping, bot detection testing, and HTTP request simulation.

ยงExamples

use redstr::random_user_agent;
let ua = random_user_agent();
assert!(ua.len() > 0);