Class AcceptEncodingHelper
java.lang.Object
de.craftsblock.craftsnet.api.http.encoding.AcceptEncodingHelper
A parser for the Accept-Encoding http header. This parser extracts encoding types and their
associated quality values (q-values), sorts them by priority, and returns a structured representation.
- Since:
- 3.3.3-SNAPSHOT
-
Method Summary
Modifier and TypeMethodDescriptionparseHeader(String header) Parses an Accept-Encoding header and extracts encoding types with their quality values.
-
Method Details
-
parseHeader
Parses an Accept-Encoding header and extracts encoding types with their quality values.- Parameters:
header- The Accept-Encoding header string.- Returns:
- A list of encoding types and their q-values, sorted by priority (highest q-value first).
-