uagent 0.1.0

Browser user agents with matching navigation headers and deterministic profile selection.
Documentation
// Generated by tools/update.py from tests/captures; do not edit by hand.
use crate::Header;

pub(crate) const CHROME_LATEST: u32 = 156;
pub(crate) const EDGE_LATEST: u32 = 156;
pub(crate) const FIREFOX_LATEST: u32 = 154;
pub(crate) const SAFARI_LATEST: u32 = 26;

pub(crate) static CHROME_HEADERS: &[Header] = &[
    Header::from_static(
        "sec-ch-ua",
        "\"Not:A-Brand\";v=\"8\", \"Chromium\";v=\"156\", \"Google Chrome\";v=\"156\"",
    ),
    Header::from_static("sec-ch-ua-mobile", "?0"),
    Header::from_static("sec-ch-ua-platform", "\"macOS\""),
    Header::from_static("upgrade-insecure-requests", "1"),
    Header::from_static(
        "user-agent",
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36",
    ),
    Header::from_static(
        "accept",
        "text/html,application/xhtml+xml,application/xml;q=0.9,image/jxl,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    ),
    Header::from_static("sec-fetch-site", "none"),
    Header::from_static("sec-fetch-mode", "navigate"),
    Header::from_static("sec-fetch-user", "?1"),
    Header::from_static("sec-fetch-dest", "document"),
    Header::from_static("accept-language", "en-US,en;q=0.9"),
];

pub(crate) static EDGE_HEADERS: &[Header] = &[
    Header::from_static(
        "sec-ch-ua",
        "\"Not:A-Brand\";v=\"8\", \"Chromium\";v=\"156\", \"Microsoft Edge\";v=\"156\"",
    ),
    Header::from_static("sec-ch-ua-mobile", "?0"),
    Header::from_static("sec-ch-ua-platform", "\"macOS\""),
    Header::from_static("upgrade-insecure-requests", "1"),
    Header::from_static(
        "user-agent",
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36 Edg/156.0.0.0",
    ),
    Header::from_static(
        "accept",
        "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    ),
    Header::from_static("sec-fetch-site", "none"),
    Header::from_static("sec-fetch-mode", "navigate"),
    Header::from_static("sec-fetch-user", "?1"),
    Header::from_static("sec-fetch-dest", "document"),
    Header::from_static("accept-language", "en-US,en;q=0.9"),
];

pub(crate) static FIREFOX_HEADERS: &[Header] = &[
    Header::from_static(
        "user-agent",
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:154.0) Gecko/20100101 Firefox/154.0",
    ),
    Header::from_static(
        "accept",
        "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
    ),
    Header::from_static("accept-language", "en-US,en;q=0.9"),
    Header::from_static("upgrade-insecure-requests", "1"),
    Header::from_static("sec-fetch-dest", "document"),
    Header::from_static("sec-fetch-mode", "navigate"),
    Header::from_static("sec-fetch-site", "none"),
    Header::from_static("sec-fetch-user", "?1"),
    Header::from_static("priority", "u=0, i"),
];

pub(crate) static SAFARI_HEADERS: &[Header] = &[
    Header::from_static("sec-fetch-dest", "document"),
    Header::from_static(
        "user-agent",
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6.2 Safari/605.1.15",
    ),
    Header::from_static("upgrade-insecure-requests", "1"),
    Header::from_static(
        "accept",
        "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
    ),
    Header::from_static("sec-fetch-site", "none"),
    Header::from_static("sec-fetch-mode", "navigate"),
    Header::from_static("accept-language", "en-GB,en;q=0.9"),
    Header::from_static("priority", "u=0, i"),
];