Expand description
User agent parser with built-in rules.
§Test Performance
Adding user agent parsing to your module will incur a latency penalty on first use. Because of this, integration tests could fail. To fix this, you will need to add a timeout to your consumer.
Structs§
- Device
- Describes the
Family
,Brand
andModel
of aDevice
- OS
- Describes the
Family
as well as theMajor
,Minor
,Patch
, andPatchMinor
versions of anOS
- User
Agent - Describes the
Family
as well as theMajor
,Minor
, andPatch
versions of aUserAgent
client
Functions§
- init_
parser - Initializes the user agent parser.
- parse_
device - Returns the family, brand, and model of the device of the requesting client.
- parse_
os - Returns the family and version of the operating system of the requesting client.
- parse_
user_ agent - Returns the family and version of a user agent client.