Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bgalek/client-hints


https://github.com/bgalek/client-hints

Last synced: about 1 month ago
JSON representation

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