A base URL must not carry whitespace or control characters. new URL() trims
surrounding whitespace and drops tab/CR/LF inside silently, but the engine joins
the raw string to each request path, so "https://h " would request
https://h /api/air-data/v3/... and a custom transport would see the raw value.
Reject rather than guess.
A base URL must not carry whitespace or control characters.
new URL()trims surrounding whitespace and drops tab/CR/LF inside silently, but the engine joins the raw string to each request path, so"https://h "would requesthttps://h /api/air-data/v3/...and a custom transport would see the raw value. Reject rather than guess.