Optionalquery: QueryParamsPerform a GET expecting JSON and parse it into T.
Optionalquery: QueryParamsPerform a GET returning the raw bytes (binary downloads).
Optionalquery: QueryParamsOptionalfollowRedirect: (target: URL) => booleanPerform a GET returning the decoded response body as text (e.g. /version).
Optionalquery: QueryParamsPerform a request with Accept negotiation and transient-error retries.
Build a fully-qualified URL from a path and optional query parameters.
Throws a DdbError for a path with a "." or ".." segment. The client puts ids, collections and request handlers into the path with
encodeURIComponent, which leaves those two unchanged, and URL parsing then resolves them: a collection of ".." with handler "version" would request/2/search/version. Neither can name a resource. (Percent-encoded forms such as "%2e%2e" are safe: encodeURIComponent turns their "%" into "%25".)