http_query 0.1.0
http_query: ^0.1.0 copied to clipboard
A client and server SDK for the HTTP QUERY method (RFC 10008) — safe, idempotent requests carrying a query body.
0.1.0 #
Initial release: a client and server SDK for the HTTP QUERY method (RFC 10008).
- Client (
QueryClient, onpackage:http):query,queryString,queryJson,queryJsonInto,options,fetchResult(followsContent-Location),fetchEquivalent(followsLocation), andcheckStatus. - Accept-Query:
parseAcceptQuery/formatAcceptQueryhandling the RFC 9651 Structured Fields List syntax (quoted strings, parameters), plusmatchesMediaRangewith*/*andtype/*wildcards. - Response metadata:
ResponseInfoandDiscoveryfrom a header map, with the distinctresultUri(§2.3) vsequivalentResourceUri(§2.4). - Server helpers (framework-agnostic):
checkQueryRequest,QueryRejection(400/405/415 per RFC 10008 §2), andacceptQueryHeader. - Caching:
cacheKey.