Skip to main content

Module device

Module device 

Source
Expand description

Device classification from User-Agent strings and platform headers.

Extracts device_type, browser, and os from the raw User-Agent header and the optional x-forge-platform header sent by client SDKs.

Structs§

DeviceInfo
Parsed device info for a request.

Functions§

parse
Parse device info from the x-forge-platform header and User-Agent.
parse_lowered
Parse device info from a pre-lowercased User-Agent string.