Crate relay_ua

source
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§

  • Describes the Family, Brand and Model of a Device
  • Describes the Family as well as the Major, Minor, Patch, and PatchMinor versions of an OS
  • Describes the Family as well as the Major, Minor, and Patch versions of a UserAgent client

Functions§

  • Initializes the user agent parser.
  • Returns the family, brand, and model of the device of the requesting client.
  • Returns the family and version of the operating system of the requesting client.
  • Returns the family and version of a user agent client.