NAME
HTTP::UserAgentClientHints::BrandVersion - To Handle Sec-CH-UA values of User Agent Client Hints
SYNOPSIS
use HTTP::UserAgentClientHints;
my $sec_ch_ua = q|" Not A;Brand";v="09", "Chromium";v="98", "Google Chrome";v="97.1"|;
my $brand_version = HTTP::UserAgentClientHints::BrandVersion->new($sec_ch_ua);
DESCRIPTION
HTTP::UserAgentClientHints::BrandVersion is the module which gives you a utility to handle Sec-CH-UA values of User Agent Client Hints (UA-CH)
METHODS
new($sec_ch_ua)
The constructor. The $sec_ch_ua string is required.
brands
To get brands list as array ref.
my $brands = $brand_version->brands;
NOTE that the order of the list is not specific. Please sort if you want.
brand_version
To get a hash of brand and version pair.
$brand_version->brand_version->{Chromium}; # 98
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
LICENSE
HTTP::UserAgentClientHints::BrandVersion
is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. (Note that, unlike the Artistic License 1.0, version 2.0 is GPL compatible by itself, hence there is no benefit to having an Artistic 2.0 / GPL disjunction.) See the file LICENSE for details.