Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.16 KB

README.md

File metadata and controls

27 lines (23 loc) · 1.16 KB

Client-Hints

Library parses http headers and returns parsed client-hints.

Build Codecov GitHub Release Date Quality Gate Status Libraries.io dependency status for GitHub repo

Usage

ClientHints clientHints = ClientHints.fromMap(headers);
...
clientHints.isMobile();
clientHints.getPlatform();
clientHints.getPlatformVersion();
clientHints.getArchitecture();
clientHints.getUserAgent();
clientHints.getDeviceMemory();
clientHints.getDownlink();
clientHints.getEffectiveConnectionType();
clientHints.getModel();
clientHints.getRoundTripTime();
clientHints.isSaveDataEnabled();