private HttpRequest.Builder request(String str, long timeoutMS) throws IOException {
		try {
			return HttpRequest.newBuilder(serverURI.resolve(str))
					.timeout(Duration.ofMillis(timeoutMS))
					.setHeader("User-Agent", GHIDRA_USER_AGENT);
		}
		catch (IllegalArgumentException e) {
			throw new IOException(e);
		}
	}
Returns a list of languages that the LibreTranslate server supports.

@param monitor {@link TaskMonitor}
@return list of {@link SupportedLanguage} records
@throws IOException if error connecting or excessive time to respond
@throws CancelledException if cancelled
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/translate/libretranslate/LibreTranslateStringTranslationService.java