Build a fully-qualified URL from a path and optional query parameters. It keeps the
base URL's userinfo; request() sends it as an Authorization header instead.
Optionalquery: QueryParamsThe request URL as an error about the answer shows it: absolute (so a message names the host that gave a bad answer, which matters with a custom base URL), without the base URL's userinfo (as the network errors show it), cut at MAX_MESSAGE_TEXT characters. It never throws: describing a URL for a message does not validate it.
Optionalquery: QueryParamsPerform a GET expecting JSON and parse it into T. With shape, the parsed body must
pass it (see responseShapeProblem in client.ts): a 2xx body without the documented
envelope (null, {}, an error object, a proxy's text) is a LuftParseError, never data.
An empty (or whitespace-only) body is one too: every endpoint answers with a JSON document.
Every error about the answer names the request (GET <url>: …, without the userinfo).
The text is never changed silently: bytes that are not valid in the charset, and lone
surrogates written as JSON escapes (\ud800), are replaced with U+FFFD, so the result is
well-formed text (jq rejects a lone surrogate, and with it the whole output), and
onWarning is told how many. One bad character never sinks a whole answer.
Optionalquery: QueryParamsOptionalshape: (value: unknown) => string | undefinedPerform a request with Accept negotiation and transient-error retries.
EngineOptions.bigIntegerKeys, copied.