BrowserProfile class
A browser identity: a User-Agent string plus the request headers a real browser of that type would send alongside it (Accept, client hints, Sec-Fetch). Keeping these consistent avoids the easy "UA claims Chrome but sends no client hints" bot tell.
Note: this only addresses header-level fingerprinting. TLS/JA3 and HTTP/2
fingerprints are determined by the Dart networking stack and cannot be
changed here — route through a ProxyAPIConfig unblocker for targets that
fingerprint at those layers.
Constructors
-
BrowserProfile(String userAgent, Map<
String, String> headers)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Headers matching userAgent. Does NOT include the
User-Agentheader itself, so callers can decide its precedence.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userAgent → String
-
The generated User-Agent string.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited