INNER CODE UNIT · TypeScript

getConfiguredRoutingProxyUrl

headroomlabs-ai/headroom · plugins/openclaw/src/plugin/index.ts:76

  const getConfiguredRoutingProxyUrl = async (): Promise<string | null> => {
    if (!proxyUrl) {
      return null;
    }
    if (validatedConfiguredProxyUrl === proxyUrl) {
      return validatedConfiguredProxyUrl;
    }
    if (!configuredProxyProbePromise) {
      configuredProxyProbePromise = probeHeadroomProxy(proxyUrl)
        .then((probe) => {
          if (probe.reachable && probe.isHeadroom) {
            validatedConfiguredProxyUrl = proxyUrl;
            return proxyUrl;
          }
          logger.warn(
            `[headroom] Skipping upstream gateway routing: configured proxyUrl is not a ready Headroom proxy at ${proxyUrl}` +
              (probe.reason ? ` (${probe.reason})` : ""),
          );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…