randomBrowserProfile function

BrowserProfile randomBrowserProfile(
  1. UserAgentDevice type
)

Returns a random BrowserProfile (User-Agent + matching headers) for the given type.

Implementation

BrowserProfile randomBrowserProfile(UserAgentDevice type) {
  final id = _identity(type);
  return BrowserProfile(id.ua, _headersFor(id));
}