Build a fully-qualified URL from a path and optional query parameters.
Throws an AutobahnValidationError for a path with a "." or ".." segment. The client puts
road ids and identifiers into the path with encodeURIComponent, which leaves
those two unchanged, and URL parsing then resolves them: roadworks list ..
would request /o/services/roadworks and report "no roadworks" with exit 0.
Neither can name a resource. (Percent-encoded forms such as "%2e%2e" are safe:
encodeURIComponent turns their "%" into "%25".) The client rejects such ids first,
with a message about the id (validate.ts idProblem); this guard is the backstop for
a direct getJson/request caller.
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 MAX_MESSAGE_VALUE_LENGTH characters. It never throws: describing a URL for a message or a log line does not validate it (buildUrl does).
Optionalquery: QueryParamsPerform a GET expecting JSON and parse it into T. An empty (or whitespace-only)
body is an AutobahnParseError, or with emptyIsNotFound an AutobahnNotFoundError
that names the status the server really sent. 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: QueryParamsA value from an answer quoted for an error message (quoteValue), the base URL's credentials
scrubbed first, before the cut: a 2xx answer (an identifier that doesn't match, a did-you-mean
road id from the road list) can echo them as well as an error body. API code quotes server
values with this.
Perform a request with Accept negotiation and transient-error retries.
EngineOptions.bigIntegerKeys, copied.