Skip to main content

Interface: UserAgent

@divine/web-service.UserAgent

Information about the remote client that issued the WebRequest.

Properties

browser

browser: Object

Name and version of the browser/user agent.

Type declaration

NameType
major?string
name?string
version?string

Defined in

web-service/src/request.ts:19


cpu

cpu: Object

The CPU architecture the client is running on.

Type declaration

NameType
architecture?"68k" | "amd64" | "arm" | "arm64" | "avr" | "ia32" | "ia64" | "irix" | "irix64" | "mips" | "mips64" | "pa-risc" | "ppc" | "sparc" | "spark64"

Defined in

web-service/src/request.ts:31


device

device: Object

Information about the device the user agent is running on.

Type declaration

NameType
model?string
type?"console" | "mobile" | "smarttv" | "tablet" | "wearable" | "embedded"
vendor?string

Defined in

web-service/src/request.ts:28


engine

engine: Object

The name and version of the HTML rendering engine.

Type declaration

NameType
name?string
version?string

Defined in

web-service/src/request.ts:22


os

os: Object

The name and version of the client operating system.

Type declaration

NameType
name?string
version?string

Defined in

web-service/src/request.ts:25


ua

Optional ua: string

The full user agent string, taken from the user-agent HTTP request header.

Defined in

web-service/src/request.ts:16