View Source UAInspector.ClientHints (UAInspector v3.9.0)
Parse and store client hint headers for usage in device detection.
Summary
Functions
Parse headers into a new client hint struct.
Types
@type t() :: %UAInspector.ClientHints{ application: String.t() | :unknown, architecture: String.t() | :unknown, bitness: String.t() | :unknown, full_version: String.t() | :unknown, full_version_list: [{String.t(), String.t()}], mobile: boolean(), model: String.t() | :unknown, platform: String.t() | :unknown, platform_version: String.t() | :unknown }
Functions
Parse headers into a new client hint struct.
All headers are expected in dash-case (lowercase with dashes) format.
Last header (if multiple possible) will be used for the result.