Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bgalek/client-hints
https://github.com/bgalek/client-hints
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bgalek/client-hints
- Owner: bgalek
- License: apache-2.0
- Created: 2021-08-06T06:29:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T17:41:36.000Z (2 months ago)
- Last Synced: 2024-09-09T21:52:45.769Z (2 months ago)
- Language: Java
- Size: 190 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
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.
## 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();
```