https://github.com/bgalek/client-hints
Library parses http headers and returns parsed client-hints.
https://github.com/bgalek/client-hints
Last synced: 15 days ago
JSON representation
Library parses http headers and returns parsed client-hints.
- Host: GitHub
- URL: https://github.com/bgalek/client-hints
- Owner: bgalek
- License: apache-2.0
- Created: 2021-08-06T06:29:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T17:40:26.000Z (6 months ago)
- Last Synced: 2025-01-27T18:42:47.564Z (6 months ago)
- Language: Java
- Homepage:
- Size: 265 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Client-Hints
> Library parses http headers and returns parsed client-hints.[](https://github.com/bgalek/client-hints/actions/workflows/ci.yml)


[](https://sonarcloud.io/summary/new_code?id=bgalek_client-hints)
## Usage
```java
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();
```