userAgent property

UserAgentDevice userAgent
getter/setter pair

User agent device type for HTTP requests.

Determines whether to use a mobile or desktop user agent string when making HTTP requests. This can affect how the website responds and what content is returned.

Defaults to UserAgentDevice.mobile.

Implementation

UserAgentDevice userAgent;