Login
You're viewing the functional.cafe public feed.
  • Nov 15, 2026, 2:46 PM

    Okay, lets see how to do the Sec-CH-UA stuff! Lets start with an API on the Roto side:

    match request.header("sec-ch-ua") {
      Some(hdr) => {
        let scu = matchers.SFV.parse_list(hdr) {
          Ok(list) => {
            if list.contains("Chromium") { ... }
          },
          Err(e) => return Err(e),
        }
      }
      None => {}
    }
    

    A bit verbose, yes, but this lets me handle errors in a reasonable way.

    💬 1🔄 0⭐ 0

Replies