Skip to content

Library parses http headers and returns parsed client-hints.

License

Notifications You must be signed in to change notification settings

bgalek/client-hints

Repository files navigation

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();

About

Library parses http headers and returns parsed client-hints.

Resources

License

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages