import { type UserAgentInfo } from "https://deno.land/x/ayonli_jsext@v0.9.72/http/util.ts";
Represents the user agent information.
Most browsers use the User-Agent
or the navigator.userAgent
string to
indicate what they are compatible instead of what they are made of. This
interface tries to represent the actual user agent information as accurate
as possible.
Properties
The version of the user agent, e.g. 127.0.0.0
. This value can be
undefined
if the version is not provided.
optional
runtime: Pick<RuntimeInfo, "identity" | "version"> | undefinedJavaScript runtime information defined by the user agent, only available if the user agent is a browser or a JavaScript server runtime.
platform: WellknownPlatform | "unknown"
The platform on which the user agent is running, e.g. darwin
, windows
,
linux
, android
, etc.
The original user agent string passed into parseUserAgent.