Build a fully-qualified URL from a path and optional query parameters.
Optionalquery: QueryParamsThe request URL as error messages show it: absolute (so a message names the host that gave a bad answer, which matters with a custom base URL), userinfo redacted and cut at 500 characters.
Optionalquery: QueryParamsPerform a GET expecting JSON and parse it into T. Every error about the answer names
the request (GET <url>: …, userinfo redacted).
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: QueryParamsPerform a GET returning the raw bytes (image / binary downloads).
Optionalquery: QueryParamsA value from an answer quoted for an error message (quoteValue, cut at max characters),
the base URL's credentials and the API key scrubbed first, before the cut, so no part of one
stays. API code quotes server values with this.
Optionalmax: numberPerform a request with Accept negotiation and transient-error retries.
value, a string from an answer, with the base URL's credentials and the API key replaced by
***: a 2xx answer can echo them as well as an error body. API code puts a server value into
a message or an error's fields with this, and quotes it with quoteServerValue.
EngineOptions.bigIntegerKeys, copied.