9router 0.5.116 → 0.5.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +4 -4
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +12 -12
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +4 -4
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +3 -3
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +4 -4
- package/app/.next-cli-build/server/chunks/1051.js +1 -1
- package/app/.next-cli-build/server/chunks/1133.js +1 -1
- package/app/.next-cli-build/server/chunks/{2380.js → 1297.js} +3 -53
- package/app/.next-cli-build/server/chunks/1356.js +1 -1
- package/app/.next-cli-build/server/chunks/{2365.js → 1866.js} +1 -1
- package/app/.next-cli-build/server/chunks/24.js +1 -1
- package/app/.next-cli-build/server/chunks/2598.js +1 -1
- package/app/.next-cli-build/server/chunks/2840.js +1 -0
- package/app/.next-cli-build/server/chunks/3225.js +1 -1
- package/app/.next-cli-build/server/chunks/3697.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +5 -5
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4279.js +1 -1
- package/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/{3783.js → 5299.js} +3 -3
- package/app/.next-cli-build/server/chunks/5330.js +34 -34
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6297.js +1 -0
- package/app/.next-cli-build/server/chunks/6576.js +1 -0
- package/app/.next-cli-build/server/chunks/6690.js +1 -1
- package/app/.next-cli-build/server/chunks/6724.js +1 -1
- package/app/.next-cli-build/server/chunks/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/6877.js +1 -1
- package/app/.next-cli-build/server/chunks/7187.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7373.js +1 -1
- package/app/.next-cli-build/server/chunks/7525.js +1 -1
- package/app/.next-cli-build/server/chunks/7552.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7843.js +51 -0
- package/app/.next-cli-build/server/chunks/8251.js +1 -1
- package/app/.next-cli-build/server/chunks/8271.js +1 -1
- package/app/.next-cli-build/server/chunks/8402.js +1 -1
- package/app/.next-cli-build/server/chunks/8416.js +1 -1
- package/app/.next-cli-build/server/chunks/8623.js +1 -1
- package/app/.next-cli-build/server/chunks/866.js +1 -0
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +3 -3
- package/app/.next-cli-build/server/chunks/8896.js +1 -1
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/9128.js +1 -1
- package/app/.next-cli-build/server/chunks/9198.js +1 -0
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9604.js +1 -1
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +1 -1
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/1321-2fde166305caeddb.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-2d39b4ce6857f490.js +7 -0
- package/app/.next-cli-build/static/chunks/{9134-07842c4023ec2223.js → 761-4ab39a76a6565658.js} +10 -10
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-dde07454165b542e.js → page-9fe240988c674585.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-0e889b3c170b388d.js → page-2e6e4ef7c270a4ff.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0688449cf035f993.js → page-899c85a4a09b87cc.js} +11 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-38924c451fb16b6e.js → page-2f96a614dc53d80f.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c13b42f0dbad8fcd.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-8f7c68a9ddffe74b.js +4 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-9782a8d4c3075073.js → page-6923bda560bbc869.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-3b1b5d8e342d932f.js +1 -0
- package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
- package/app/node_modules/undici/README.md +28 -115
- package/app/node_modules/undici/docs/docs/api/Agent.md +42 -249
- package/app/node_modules/undici/docs/docs/api/BalancedPool.md +48 -246
- package/app/node_modules/undici/docs/docs/api/CacheStorage.md +13 -171
- package/app/node_modules/undici/docs/docs/api/CacheStore.md +98 -309
- package/app/node_modules/undici/docs/docs/api/Client.md +164 -412
- package/app/node_modules/undici/docs/docs/api/ClientStats.md +14 -80
- package/app/node_modules/undici/docs/docs/api/Connector.md +35 -118
- package/app/node_modules/undici/docs/docs/api/ContentType.md +25 -65
- package/app/node_modules/undici/docs/docs/api/Cookies.md +71 -122
- package/app/node_modules/undici/docs/docs/api/Debug.md +18 -34
- package/app/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +167 -368
- package/app/node_modules/undici/docs/docs/api/Dispatcher.md +1056 -502
- package/app/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +93 -105
- package/app/node_modules/undici/docs/docs/api/Errors.md +28 -603
- package/app/node_modules/undici/docs/docs/api/EventSource.md +13 -326
- package/app/node_modules/undici/docs/docs/api/Fetch.md +30 -691
- package/app/node_modules/undici/docs/docs/api/GlobalInstallation.md +96 -78
- package/app/node_modules/undici/docs/docs/api/H2CClient.md +176 -299
- package/app/node_modules/undici/docs/docs/api/MockAgent.md +314 -333
- package/app/node_modules/undici/docs/docs/api/MockCallHistory.md +98 -272
- package/app/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +26 -189
- package/app/node_modules/undici/docs/docs/api/MockClient.md +33 -151
- package/app/node_modules/undici/docs/docs/api/MockErrors.md +5 -56
- package/app/node_modules/undici/docs/docs/api/MockPool.md +258 -321
- package/app/node_modules/undici/docs/docs/api/Pool.md +41 -235
- package/app/node_modules/undici/docs/docs/api/PoolStats.md +13 -119
- package/app/node_modules/undici/docs/docs/api/ProxyAgent.md +160 -179
- package/app/node_modules/undici/docs/docs/api/RedirectHandler.md +55 -241
- package/app/node_modules/undici/docs/docs/api/RetryAgent.md +27 -113
- package/app/node_modules/undici/docs/docs/api/RetryHandler.md +79 -161
- package/app/node_modules/undici/docs/docs/api/RoundRobinPool.md +72 -166
- package/app/node_modules/undici/docs/docs/api/SnapshotAgent.md +517 -262
- package/app/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +196 -177
- package/app/node_modules/undici/docs/docs/api/Util.md +11 -68
- package/app/node_modules/undici/docs/docs/api/WebSocket.md +80 -475
- package/app/node_modules/undici/docs/docs/api/api-lifecycle.md +32 -100
- package/app/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -2
- package/app/node_modules/undici/docs/docs/best-practices/crawling.md +1 -3
- package/app/node_modules/undici/docs/docs/best-practices/mocking-request.md +7 -9
- package/app/node_modules/undici/docs/docs/best-practices/proxy.md +1 -3
- package/app/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +8 -10
- package/app/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -2
- package/app/node_modules/undici/index.js +2 -4
- package/app/node_modules/undici/lib/api/api-connect.js +11 -13
- package/app/node_modules/undici/lib/api/api-pipeline.js +13 -26
- package/app/node_modules/undici/lib/api/api-request.js +21 -51
- package/app/node_modules/undici/lib/api/api-stream.js +20 -81
- package/app/node_modules/undici/lib/api/api-upgrade.js +11 -21
- package/app/node_modules/undici/lib/api/readable.js +11 -46
- package/app/node_modules/undici/lib/cache/memory-cache-store.js +15 -50
- package/app/node_modules/undici/lib/cache/sqlite-cache-store.js +7 -85
- package/app/node_modules/undici/lib/core/connect.js +7 -46
- package/app/node_modules/undici/lib/core/constants.js +23 -11
- package/app/node_modules/undici/lib/core/errors.js +3 -60
- package/app/node_modules/undici/lib/core/request.js +19 -116
- package/app/node_modules/undici/lib/core/symbols.js +0 -5
- package/app/node_modules/undici/lib/core/util.js +88 -110
- package/app/node_modules/undici/lib/dispatcher/agent.js +32 -51
- package/app/node_modules/undici/lib/dispatcher/balanced-pool.js +27 -23
- package/app/node_modules/undici/lib/dispatcher/client-h1.js +88 -163
- package/app/node_modules/undici/lib/dispatcher/client-h2.js +373 -1249
- package/app/node_modules/undici/lib/dispatcher/client.js +34 -114
- package/app/node_modules/undici/lib/dispatcher/dispatcher-base.js +8 -10
- package/app/node_modules/undici/lib/dispatcher/dispatcher.js +5 -15
- package/app/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +13 -57
- package/app/node_modules/undici/lib/dispatcher/h2c-client.js +4 -4
- package/app/node_modules/undici/lib/dispatcher/pool-base.js +27 -160
- package/app/node_modules/undici/lib/dispatcher/pool.js +16 -127
- package/app/node_modules/undici/lib/dispatcher/proxy-agent.js +29 -128
- package/app/node_modules/undici/lib/dispatcher/retry-agent.js +0 -13
- package/app/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -47
- package/app/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +63 -153
- package/app/node_modules/undici/lib/global.js +14 -37
- package/app/node_modules/undici/lib/handler/cache-handler.js +358 -133
- package/app/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -10
- package/app/node_modules/undici/lib/handler/decorator-handler.js +3 -8
- package/app/node_modules/undici/lib/handler/deduplication-handler.js +38 -74
- package/app/node_modules/undici/lib/handler/redirect-handler.js +103 -93
- package/app/node_modules/undici/lib/handler/retry-handler.js +45 -227
- package/app/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
- package/app/node_modules/undici/lib/handler/wrap-handler.js +105 -0
- package/app/node_modules/undici/lib/interceptor/cache.js +140 -76
- package/app/node_modules/undici/lib/interceptor/decompress.js +5 -12
- package/app/node_modules/undici/lib/interceptor/deduplicate.js +4 -5
- package/app/node_modules/undici/lib/interceptor/dns.js +1 -23
- package/app/node_modules/undici/lib/interceptor/redirect.js +3 -3
- package/app/node_modules/undici/lib/interceptor/response-error.js +28 -72
- package/app/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/app/node_modules/undici/lib/llhttp/llhttp-wasm.js +1 -1
- package/app/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +1 -1
- package/app/node_modules/undici/lib/mock/mock-agent.js +9 -32
- package/app/node_modules/undici/lib/mock/mock-call-history.js +1 -1
- package/app/node_modules/undici/lib/mock/mock-interceptor.js +7 -25
- package/app/node_modules/undici/lib/mock/mock-utils.js +47 -281
- package/app/node_modules/undici/lib/mock/snapshot-agent.js +7 -25
- package/app/node_modules/undici/lib/mock/snapshot-recorder.js +5 -41
- package/app/node_modules/undici/lib/mock/snapshot-utils.js +2 -3
- package/app/node_modules/undici/lib/util/cache.js +14 -69
- package/app/node_modules/undici/lib/util/promise.js +28 -0
- package/app/node_modules/undici/lib/util/runtime-features.js +34 -3
- package/app/node_modules/undici/lib/web/cache/cache.js +16 -23
- package/app/node_modules/undici/lib/web/cache/cachestorage.js +5 -11
- package/app/node_modules/undici/lib/web/cookies/index.js +6 -16
- package/app/node_modules/undici/lib/web/cookies/parse.js +4 -7
- package/app/node_modules/undici/lib/web/cookies/util.js +1 -1
- package/app/node_modules/undici/lib/web/eventsource/eventsource.js +23 -66
- package/app/node_modules/undici/lib/web/eventsource/util.js +1 -32
- package/app/node_modules/undici/lib/web/fetch/body.js +25 -70
- package/app/node_modules/undici/lib/web/fetch/constants.js +1 -1
- package/app/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/app/node_modules/undici/lib/web/fetch/formdata-parser.js +4 -12
- package/app/node_modules/undici/lib/web/fetch/formdata.js +26 -39
- package/app/node_modules/undici/lib/web/fetch/headers.js +33 -36
- package/app/node_modules/undici/lib/web/fetch/index.js +250 -294
- package/app/node_modules/undici/lib/web/fetch/request.js +75 -99
- package/app/node_modules/undici/lib/web/fetch/response.js +47 -44
- package/app/node_modules/undici/lib/web/fetch/util.js +9 -17
- package/app/node_modules/undici/lib/web/infra/index.js +14 -15
- package/app/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +2 -2
- package/app/node_modules/undici/lib/web/webidl/index.js +21 -7
- package/app/node_modules/undici/lib/web/websocket/connection.js +5 -16
- package/app/node_modules/undici/lib/web/websocket/events.js +26 -43
- package/app/node_modules/undici/lib/web/websocket/frame.js +7 -1
- package/app/node_modules/undici/lib/web/websocket/receiver.js +3 -13
- package/app/node_modules/undici/lib/web/websocket/stream/websocketerror.js +10 -13
- package/app/node_modules/undici/lib/web/websocket/stream/websocketstream.js +14 -29
- package/app/node_modules/undici/lib/web/websocket/websocket.js +40 -65
- package/app/node_modules/undici/package.json +13 -15
- package/app/node_modules/undici/types/agent.d.ts +2 -0
- package/app/node_modules/undici/types/api.d.ts +1 -1
- package/app/node_modules/undici/types/cache-interceptor.d.ts +0 -10
- package/app/node_modules/undici/types/client.d.ts +27 -64
- package/app/node_modules/undici/types/connector.d.ts +0 -1
- package/app/node_modules/undici/types/cookies.d.ts +1 -1
- package/app/node_modules/undici/types/diagnostics-channel.d.ts +1 -2
- package/app/node_modules/undici/types/dispatcher.d.ts +29 -7
- package/app/node_modules/undici/types/errors.d.ts +1 -26
- package/app/node_modules/undici/types/fetch.d.ts +1 -5
- package/app/node_modules/undici/types/formdata.d.ts +6 -0
- package/app/node_modules/undici/types/h2c-client.d.ts +7 -7
- package/app/node_modules/undici/types/handlers.d.ts +0 -2
- package/app/node_modules/undici/types/header.d.ts +0 -5
- package/app/node_modules/undici/types/index.d.ts +1 -3
- package/app/node_modules/undici/types/interceptors.d.ts +2 -7
- package/app/node_modules/undici/types/mock-agent.d.ts +10 -11
- package/app/node_modules/undici/types/mock-interceptor.d.ts +1 -5
- package/app/node_modules/undici/types/pool.d.ts +2 -0
- package/app/node_modules/undici/types/proxy-agent.d.ts +2 -9
- package/app/node_modules/undici/types/round-robin-pool.d.ts +2 -0
- package/app/node_modules/undici/types/snapshot-agent.d.ts +0 -4
- package/app/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -4
- package/app/node_modules/undici/types/utility.d.ts +4 -4
- package/app/node_modules/undici/types/webidl.d.ts +8 -13
- package/app/package.json +5 -2
- package/app/public/providers/sensenova-intl.png +0 -0
- package/app/src/shared/services/quotaAutoPing.js +17 -2
- package/package.json +2 -2
- package/app/.next-cli-build/server/chunks/1004.js +0 -1
- package/app/.next-cli-build/server/chunks/4480.js +0 -1
- package/app/.next-cli-build/server/chunks/7573.js +0 -1
- package/app/.next-cli-build/server/chunks/8499.js +0 -1
- package/app/.next-cli-build/server/chunks/9102.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-93eb6ca56f8fcb1e.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-870732fd9d818574.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f98f1e29fd6fc471.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-e5d73ba422004783.js +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-888c58ee93724e20.js +0 -1
- package/app/node_modules/undici/docs/docs/api/Interceptors.md +0 -439
- package/app/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +0 -233
- package/app/node_modules/undici/docs/docs/getting-started.md +0 -281
- package/app/node_modules/undici/docs/docs/index.md +0 -793
- package/app/node_modules/undici/docs/docs/site.json +0 -125
- package/app/node_modules/undici/docs/docs/type-map.json +0 -79
- package/app/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +0 -127
- package/app/node_modules/undici/lib/dispatcher/parser-h1.js +0 -1064
- package/app/node_modules/undici/lib/milo/LICENSE.md +0 -7
- package/app/node_modules/undici/lib/milo/no-simd.js +0 -1002
- package/app/node_modules/undici/lib/milo/simd.js +0 -1002
- package/app/node_modules/undici/types/dispatcher1-wrapper.d.ts +0 -7
- /package/app/.next-cli-build/static/{Z4ZIksyhEDiaIj7-73igf → 5PG9DiG39fbvOpgKSnR7p}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{Z4ZIksyhEDiaIj7-73igf → 5PG9DiG39fbvOpgKSnR7p}/_ssgManifest.js +0 -0
|
@@ -1,200 +1,118 @@
|
|
|
1
|
-
# RetryHandler
|
|
1
|
+
# Class: RetryHandler
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
<!--type=module-->
|
|
5
|
-
<!-- source_link=lib/handler/retry-handler.js -->
|
|
3
|
+
Extends: `undici.DispatcherHandlers`
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
A handler class that implements the retry logic for a request.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
with a recoverable network error or an eligible HTTP status code. It wraps an
|
|
11
|
-
inner handler and re-dispatches the request, applying an exponential backoff and
|
|
12
|
-
honouring the `Retry-After` response header. When a response is partially
|
|
13
|
-
consumed before the failure, the handler resumes the download with a `Range`
|
|
14
|
-
request guarded by the original `ETag`.
|
|
7
|
+
## `new RetryHandler(dispatchOptions, retryHandlers, [retryOptions])`
|
|
15
8
|
|
|
16
|
-
|
|
17
|
-
also be supplied directly to [`dispatcher.dispatch()`][] for fine-grained
|
|
18
|
-
control over the retry behaviour.
|
|
9
|
+
Arguments:
|
|
19
10
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
```
|
|
11
|
+
- **options** `Dispatch.DispatchOptions & RetryOptions` (required) - It is an intersection of `Dispatcher.DispatchOptions` and `RetryOptions`.
|
|
12
|
+
- **retryHandlers** `RetryHandlers` (required) - Object containing the `dispatch` to be used on every retry, and `handler` for handling the `dispatch` lifecycle.
|
|
23
13
|
|
|
24
|
-
|
|
14
|
+
Returns: `retryHandler`
|
|
25
15
|
|
|
26
|
-
|
|
27
|
-
added: v5.28.0
|
|
28
|
-
-->
|
|
16
|
+
### Parameter: `Dispatch.DispatchOptions & RetryOptions`
|
|
29
17
|
|
|
30
|
-
|
|
18
|
+
Extends: [`Dispatch.DispatchOptions`](/docs/docs/api/Dispatcher.md#parameter-dispatchoptions).
|
|
31
19
|
|
|
32
|
-
|
|
33
|
-
single dispatch call and forwards the dispatch lifecycle to the inner `handler`,
|
|
34
|
-
re-issuing the request through the supplied `dispatch` function whenever a retry
|
|
35
|
-
is warranted.
|
|
20
|
+
#### `RetryOptions`
|
|
36
21
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
22
|
+
- **throwOnError** `boolean` (optional) - Disable to prevent throwing error on last retry attept, useful if you need the body on errors from server or if you have custom error handler.
|
|
23
|
+
- **retry** `(err: Error, context: RetryContext, callback: (err?: Error | null) => void) => number | null` (optional) - Function to be called after every retry. It should pass error if no more retries should be performed.
|
|
24
|
+
- **maxRetries** `number` (optional) - Maximum number of retries. Default: `5`
|
|
25
|
+
- **maxTimeout** `number` (optional) - Maximum number of milliseconds to wait before retrying. Default: `30000` (30 seconds)
|
|
26
|
+
- **minTimeout** `number` (optional) - Minimum number of milliseconds to wait before retrying. Default: `500` (half a second)
|
|
27
|
+
- **timeoutFactor** `number` (optional) - Factor to multiply the timeout by for each retry attempt. Default: `2`
|
|
28
|
+
- **retryAfter** `boolean` (optional) - It enables automatic retry after the `Retry-After` header is received. Default: `true`
|
|
29
|
+
-
|
|
30
|
+
- **methods** `string[]` (optional) - Array of HTTP methods to retry. Default: `['GET', 'PUT', 'HEAD', 'OPTIONS', 'DELETE']`
|
|
31
|
+
- **statusCodes** `number[]` (optional) - Array of HTTP status codes to retry. Default: `[429, 500, 502, 503, 504]`
|
|
32
|
+
- **errorCodes** `string[]` (optional) - Array of Error codes to retry. Default: `['ECONNRESET', 'ECONNREFUSED', 'ENOTFOUND', 'ENETDOWN','ENETUNREACH', 'EHOSTDOWN', 'UND_ERR_SOCKET']`
|
|
41
33
|
|
|
42
|
-
|
|
34
|
+
**`RetryContext`**
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
changes:
|
|
47
|
-
- version: v7.0.0
|
|
48
|
-
pr-url: https://github.com/nodejs/undici/pull/3883
|
|
49
|
-
description: Reimplemented on top of the new dispatch lifecycle hooks.
|
|
50
|
-
-->
|
|
36
|
+
- `state`: `RetryState` - Current retry state. It can be mutated.
|
|
37
|
+
- `opts`: `Dispatch.DispatchOptions & RetryOptions` - Options passed to the retry handler.
|
|
51
38
|
|
|
52
|
-
|
|
53
|
-
an optional `retryOptions` field. Type is
|
|
54
|
-
`DispatchOptions & { retryOptions?: RetryOptions }`.
|
|
55
|
-
* `retryOptions` {RetryOptions} (optional) Configuration controlling when and
|
|
56
|
-
how the request is retried. See [`RetryOptions`](#retryoptions).
|
|
57
|
-
* `retryHandlers` {RetryHandlers} The handlers used to drive the retry loop. See
|
|
58
|
-
[`RetryHandlers`](#parameter-retryhandlers).
|
|
59
|
-
* Returns: {RetryHandler}
|
|
39
|
+
**`RetryState`**
|
|
60
40
|
|
|
61
|
-
|
|
41
|
+
It represents the retry state for a given request.
|
|
42
|
+
|
|
43
|
+
- `counter`: `number` - Current retry attempt.
|
|
44
|
+
|
|
45
|
+
### Parameter `RetryHandlers`
|
|
62
46
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
is passed through instead, which is useful when the error body is needed or a
|
|
66
|
-
custom error handler is in place. **Default:** `true`.
|
|
67
|
-
* `retry` {Function} Callback invoked on every retry iteration to decide whether
|
|
68
|
-
another attempt should be made. It receives the error, the retry context, and a
|
|
69
|
-
callback. Call the callback with an `Error` to stop retrying, or with `null` to
|
|
70
|
-
schedule another attempt. **Default:** the built-in retry strategy described
|
|
71
|
-
below.
|
|
72
|
-
* `err` {Error} The error that triggered the retry.
|
|
73
|
-
* `context` {RetryContext} The current retry context. See
|
|
74
|
-
[`RetryContext`](#retrycontext).
|
|
75
|
-
* `callback` {Function} Signals the outcome of this iteration.
|
|
76
|
-
* `result` {Error|null} (optional) An `Error` to abort retrying, or `null` to
|
|
77
|
-
retry.
|
|
78
|
-
* `maxRetries` {number} Maximum number of retries allowed. **Default:** `5`.
|
|
79
|
-
* `maxTimeout` {number} Maximum number of milliseconds to wait between retries.
|
|
80
|
-
**Default:** `30000` (30 seconds).
|
|
81
|
-
* `minTimeout` {number} Initial number of milliseconds to wait before the first
|
|
82
|
-
retry. **Default:** `500` (half a second).
|
|
83
|
-
* `timeoutFactor` {number} Multiplier applied to the timeout between successive
|
|
84
|
-
retries to produce an exponential backoff. **Default:** `2`.
|
|
85
|
-
* `retryAfter` {boolean} When `true`, the delay before the next retry is inferred
|
|
86
|
-
from the `Retry-After` response header when present. **Default:** `true`.
|
|
87
|
-
* `methods` {string[]} HTTP methods that are eligible for retrying. **Default:**
|
|
88
|
-
`['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE']`.
|
|
89
|
-
* `statusCodes` {number[]} HTTP status codes that trigger a retry. **Default:**
|
|
90
|
-
`[500, 502, 503, 504, 429]`.
|
|
91
|
-
* `errorCodes` {string[]} Network error codes that trigger a retry. **Default:**
|
|
92
|
-
`['ECONNRESET', 'ECONNREFUSED', 'ENOTFOUND', 'ENETDOWN', 'ENETUNREACH', 'EHOSTDOWN', 'EHOSTUNREACH', 'EPIPE', 'UND_ERR_SOCKET']`.
|
|
93
|
-
|
|
94
|
-
The default `retry` strategy computes the delay before the next attempt as
|
|
95
|
-
`minTimeout * timeoutFactor ** (counter - 1)`, capped at `maxTimeout`. When a
|
|
96
|
-
`Retry-After` header is present it takes precedence (interpreted as seconds, or as
|
|
97
|
-
an HTTP date), still capped at `maxTimeout`. The default strategy stops retrying
|
|
98
|
-
once `counter` exceeds `maxRetries`, when the error code is not in `errorCodes`,
|
|
99
|
-
when the method is not in `methods`, or when the response status code is not in
|
|
100
|
-
`statusCodes`.
|
|
101
|
-
|
|
102
|
-
#### `RetryContext`
|
|
103
|
-
|
|
104
|
-
* `state` {RetryState} The current retry state. See [`RetryState`](#retrystate).
|
|
105
|
-
* `opts` {DispatchOptions} The dispatch options passed to the handler, including
|
|
106
|
-
the resolved `retryOptions`. Type is
|
|
107
|
-
`DispatchOptions & { retryOptions?: RetryOptions }`.
|
|
108
|
-
|
|
109
|
-
The context object passed as the second argument to the `retry` callback.
|
|
110
|
-
|
|
111
|
-
#### `RetryState`
|
|
112
|
-
|
|
113
|
-
* `counter` {number} The current retry attempt, starting at `1` for the first
|
|
114
|
-
retry.
|
|
115
|
-
|
|
116
|
-
Represents the retry state for a given request.
|
|
117
|
-
|
|
118
|
-
#### Parameter: `RetryHandlers`
|
|
119
|
-
|
|
120
|
-
* `dispatch` {Function} The dispatch function called to (re-)issue the request on
|
|
121
|
-
every attempt. Type is `(options, handler) => boolean`.
|
|
122
|
-
* `handler` {DispatchHandler} The inner handler invoked once the request succeeds
|
|
123
|
-
or the retries are exhausted.
|
|
124
|
-
|
|
125
|
-
### Examples
|
|
126
|
-
|
|
127
|
-
```mjs
|
|
128
|
-
import { Client, RetryHandler } from 'undici'
|
|
129
|
-
|
|
130
|
-
const client = new Client(`http://localhost:${server.address().port}`)
|
|
131
|
-
const chunks = []
|
|
47
|
+
- **dispatch** `(options: Dispatch.DispatchOptions, handlers: Dispatch.DispatchHandler) => Promise<Dispatch.DispatchResponse>` (required) - Dispatch function to be called after every retry.
|
|
48
|
+
- **handler** Extends [`Dispatch.DispatchHandler`](/docs/docs/api/Dispatcher.md#dispatcherdispatchoptions-handler) (required) - Handler function to be called after the request is successful or the retries are exhausted.
|
|
132
49
|
|
|
50
|
+
>__Note__: The `RetryHandler` does not retry over stateful bodies (e.g. streams, AsyncIterable) as those, once consumed, are left in a state that cannot be reutilized. For these situations the `RetryHandler` will identify
|
|
51
|
+
>the body as stateful and will not retry the request rejecting with the error `UND_ERR_REQ_RETRY`.
|
|
52
|
+
|
|
53
|
+
Examples:
|
|
54
|
+
|
|
55
|
+
```js
|
|
56
|
+
const client = new Client(`http://localhost:${server.address().port}`);
|
|
57
|
+
const chunks = [];
|
|
133
58
|
const handler = new RetryHandler(
|
|
134
59
|
{
|
|
135
60
|
...dispatchOptions,
|
|
136
61
|
retryOptions: {
|
|
137
|
-
//
|
|
138
|
-
retry (err,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
62
|
+
// custom retry function
|
|
63
|
+
retry: function (err, state, callback) {
|
|
64
|
+
counter++;
|
|
65
|
+
|
|
66
|
+
if (err.code && err.code === "UND_ERR_DESTROYED") {
|
|
67
|
+
callback(err);
|
|
68
|
+
return;
|
|
142
69
|
}
|
|
143
70
|
|
|
144
71
|
if (err.statusCode === 206) {
|
|
145
|
-
callback(err)
|
|
146
|
-
return
|
|
72
|
+
callback(err);
|
|
73
|
+
return;
|
|
147
74
|
}
|
|
148
75
|
|
|
149
|
-
setTimeout(() => callback(null), 1000)
|
|
150
|
-
}
|
|
151
|
-
}
|
|
76
|
+
setTimeout(() => callback(null), 1000);
|
|
77
|
+
},
|
|
78
|
+
},
|
|
152
79
|
},
|
|
153
80
|
{
|
|
154
|
-
dispatch (...args) {
|
|
155
|
-
return client.dispatch(...args)
|
|
81
|
+
dispatch: (...args) => {
|
|
82
|
+
return client.dispatch(...args);
|
|
156
83
|
},
|
|
157
84
|
handler: {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
85
|
+
onConnect() {},
|
|
86
|
+
onBodySent() {},
|
|
87
|
+
onHeaders(status, _rawHeaders, resume, _statusMessage) {
|
|
88
|
+
// do something with headers
|
|
161
89
|
},
|
|
162
|
-
|
|
163
|
-
chunks.push(chunk)
|
|
90
|
+
onData(chunk) {
|
|
91
|
+
chunks.push(chunk);
|
|
92
|
+
return true;
|
|
164
93
|
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
//
|
|
168
|
-
}
|
|
169
|
-
}
|
|
94
|
+
onComplete() {},
|
|
95
|
+
onError() {
|
|
96
|
+
// handle error properly
|
|
97
|
+
},
|
|
98
|
+
},
|
|
170
99
|
}
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
client.dispatch(dispatchOptions, handler)
|
|
100
|
+
);
|
|
174
101
|
```
|
|
175
102
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
```mjs
|
|
179
|
-
import { Client, RetryHandler } from 'undici'
|
|
180
|
-
|
|
181
|
-
const client = new Client(`http://localhost:${server.address().port}`)
|
|
103
|
+
#### Example - Basic RetryHandler with defaults
|
|
182
104
|
|
|
105
|
+
```js
|
|
106
|
+
const client = new Client(`http://localhost:${server.address().port}`);
|
|
183
107
|
const handler = new RetryHandler(dispatchOptions, {
|
|
184
108
|
dispatch: client.dispatch.bind(client),
|
|
185
109
|
handler: {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
client.dispatch(dispatchOptions, handler)
|
|
110
|
+
onConnect() {},
|
|
111
|
+
onBodySent() {},
|
|
112
|
+
onHeaders(status, _rawHeaders, resume, _statusMessage) {},
|
|
113
|
+
onData(chunk) {},
|
|
114
|
+
onComplete() {},
|
|
115
|
+
onError(err) {},
|
|
116
|
+
},
|
|
117
|
+
});
|
|
195
118
|
```
|
|
196
|
-
|
|
197
|
-
[`Dispatcher`]: Dispatcher.md#class-dispatcher
|
|
198
|
-
[`DispatchHandler`]: Dispatcher.md#parameter-dispatchhandler
|
|
199
|
-
[`RetryAgent`]: RetryAgent.md#class-retryagent
|
|
200
|
-
[`dispatcher.dispatch()`]: Dispatcher.md#dispatcherdispatchoptions-handler
|
|
@@ -1,213 +1,131 @@
|
|
|
1
|
-
# RoundRobinPool
|
|
1
|
+
# Class: RoundRobinPool
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
<!--type=module-->
|
|
5
|
-
<!-- source_link=lib/dispatcher/round-robin-pool.js -->
|
|
3
|
+
Extends: `undici.Dispatcher`
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
A pool of [Client](/docs/docs/api/Client.md) instances connected to the same upstream target with round-robin client selection.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
selects clients in a round-robin fashion.
|
|
7
|
+
Unlike [`Pool`](/docs/docs/api/Pool.md), which always selects the first available client, `RoundRobinPool` cycles through clients in a round-robin fashion. This ensures even distribution of requests across all connections, which is particularly useful when the upstream target is behind a load balancer that round-robins TCP connections across multiple backend servers (e.g., Kubernetes Services).
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
`RoundRobinPool` cycles through its clients so that requests are distributed
|
|
14
|
-
evenly across every open connection. This is useful when the upstream target is
|
|
15
|
-
fronted by a load balancer that distributes TCP connections across multiple
|
|
16
|
-
backend servers (for example, a Kubernetes Service): each connection is pinned
|
|
17
|
-
to a backend by the load balancer, and `RoundRobinPool` spreads requests across
|
|
18
|
-
those connections so every backend receives a comparable share of traffic.
|
|
9
|
+
Requests are not guaranteed to be dispatched in order of invocation.
|
|
19
10
|
|
|
20
|
-
|
|
11
|
+
## `new RoundRobinPool(url[, options])`
|
|
21
12
|
|
|
22
|
-
|
|
23
|
-
import { RoundRobinPool } from 'undici'
|
|
24
|
-
|
|
25
|
-
const pool = new RoundRobinPool('http://localhost:3000', { connections: 10 })
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
`RoundRobinPool` distributes HTTP requests evenly across TCP connections, not
|
|
29
|
-
across backend servers directly. Even backend distribution therefore depends on
|
|
30
|
-
the load balancer assigning different connections to different backends (for
|
|
31
|
-
example, round-robin, random, or least-connections without client affinity). If
|
|
32
|
-
the load balancer pins all connections from one source to the same backend (for
|
|
33
|
-
example, source-IP affinity or sticky sessions), consider [`BalancedPool`][]
|
|
34
|
-
with the individual backend addresses instead.
|
|
35
|
-
|
|
36
|
-
## Class: `RoundRobinPool`
|
|
37
|
-
|
|
38
|
-
<!-- YAML
|
|
39
|
-
added: v7.17.0
|
|
40
|
-
-->
|
|
41
|
-
|
|
42
|
-
* Extends: {Dispatcher}
|
|
43
|
-
|
|
44
|
-
### `new RoundRobinPool(url[, options])`
|
|
13
|
+
Arguments:
|
|
45
14
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-->
|
|
15
|
+
* **url** `URL | string` - It should only include the **protocol, hostname, and port**.
|
|
16
|
+
* **options** `RoundRobinPoolOptions` (optional)
|
|
49
17
|
|
|
50
|
-
|
|
51
|
-
**protocol, hostname, and port**.
|
|
52
|
-
* `options` {RoundRobinPoolOptions} (optional)
|
|
18
|
+
### Parameter: `RoundRobinPoolOptions`
|
|
53
19
|
|
|
54
|
-
|
|
20
|
+
Extends: [`ClientOptions`](/docs/docs/api/Client.md#parameter-clientoptions)
|
|
55
21
|
|
|
56
|
-
|
|
22
|
+
* **factory** `(origin: URL, opts: Object) => Dispatcher` - Default: `(origin, opts) => new Client(origin, opts)`
|
|
23
|
+
* **connections** `number | null` (optional) - Default: `null` - The number of `Client` instances to create. When set to `null`, the `RoundRobinPool` instance will create an unlimited amount of `Client` instances.
|
|
24
|
+
* **clientTtl** `number | null` (optional) - Default: `null` - The amount of time before a `Client` instance is removed from the `RoundRobinPool` and closed. When set to `null`, `Client` instances will not be removed or closed based on age.
|
|
57
25
|
|
|
58
|
-
|
|
59
|
-
instances. **Default:** `(origin, opts) => new Client(origin, opts)`.
|
|
60
|
-
* `origin` {URL}
|
|
61
|
-
* `opts` {Object}
|
|
62
|
-
* Returns: {Dispatcher}
|
|
63
|
-
* `connections` {number|null} (optional) The maximum number of {Client}
|
|
64
|
-
instances to create. When set to `null`, the `RoundRobinPool` instance creates
|
|
65
|
-
an unlimited number of {Client} instances. **Default:** `null`.
|
|
66
|
-
* `clientTtl` {number|null} (optional) The amount of time, in milliseconds,
|
|
67
|
-
before a {Client} instance is removed from the `RoundRobinPool` and closed.
|
|
68
|
-
When set to `null`, {Client} instances are not removed or closed based on age.
|
|
69
|
-
**Default:** `null`.
|
|
26
|
+
## Use Case
|
|
70
27
|
|
|
71
|
-
`RoundRobinPool`
|
|
72
|
-
created lazily on the first dispatch and additional instances are created on
|
|
73
|
-
demand, up to `connections`, when every existing client is busy.
|
|
28
|
+
`RoundRobinPool` is designed for scenarios where:
|
|
74
29
|
|
|
75
|
-
|
|
30
|
+
1. You connect to a single origin (e.g., `http://my-service.namespace.svc`)
|
|
31
|
+
2. That origin is backed by a load balancer distributing TCP connections across multiple servers
|
|
32
|
+
3. You want requests evenly distributed across all backend servers
|
|
76
33
|
|
|
77
|
-
|
|
78
|
-
added: v7.17.0
|
|
79
|
-
-->
|
|
34
|
+
**Example**: In Kubernetes, when using a Service DNS name with multiple Pod replicas, kube-proxy load balances TCP connections. `RoundRobinPool` ensures each connection (and thus each Pod) receives an equal share of requests.
|
|
80
35
|
|
|
81
|
-
|
|
36
|
+
### Important: Backend Distribution Considerations
|
|
82
37
|
|
|
83
|
-
`
|
|
38
|
+
`RoundRobinPool` distributes **HTTP requests** evenly across **TCP connections**. Whether this translates to even backend server distribution depends on the load balancer's behavior:
|
|
84
39
|
|
|
85
|
-
|
|
40
|
+
**✓ Works when the load balancer**:
|
|
41
|
+
- Assigns different backends to different TCP connections from the same client
|
|
42
|
+
- Uses algorithms like: round-robin, random, least-connections (without client affinity)
|
|
43
|
+
- Example: Default Kubernetes Services without `sessionAffinity`
|
|
86
44
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
45
|
+
**✗ Does NOT work when**:
|
|
46
|
+
- Load balancer has client/source IP affinity (all connections from one IP → same backend)
|
|
47
|
+
- Load balancer uses source-IP-hash or sticky sessions
|
|
90
48
|
|
|
91
|
-
|
|
49
|
+
**How it works:**
|
|
50
|
+
1. `RoundRobinPool` creates N TCP connections to the load balancer endpoint
|
|
51
|
+
2. Load balancer assigns each TCP connection to a backend (per its algorithm)
|
|
52
|
+
3. `RoundRobinPool` cycles HTTP requests across those N connections
|
|
53
|
+
4. Result: Requests distributed proportionally to how the LB distributed the connections
|
|
92
54
|
|
|
93
|
-
`
|
|
94
|
-
`roundRobinPool.close()` has been called and the pool shutdown has completed.
|
|
55
|
+
If the load balancer assigns all connections to the same backend (e.g., due to session affinity), `RoundRobinPool` cannot overcome this. In such cases, consider using [`BalancedPool`](/docs/docs/api/BalancedPool.md) with direct backend addresses (e.g., individual pod IPs) instead of a load-balanced endpoint.
|
|
95
56
|
|
|
96
|
-
|
|
57
|
+
## Instance Properties
|
|
97
58
|
|
|
98
|
-
|
|
99
|
-
added: v7.17.0
|
|
100
|
-
-->
|
|
59
|
+
### `RoundRobinPool.closed`
|
|
101
60
|
|
|
102
|
-
|
|
61
|
+
Implements [Client.closed](/docs/docs/api/Client.md#clientclosed)
|
|
103
62
|
|
|
104
|
-
|
|
63
|
+
### `RoundRobinPool.destroyed`
|
|
105
64
|
|
|
106
|
-
|
|
65
|
+
Implements [Client.destroyed](/docs/docs/api/Client.md#clientdestroyed)
|
|
107
66
|
|
|
108
|
-
|
|
109
|
-
added: v7.17.0
|
|
110
|
-
-->
|
|
67
|
+
### `RoundRobinPool.stats`
|
|
111
68
|
|
|
112
|
-
|
|
113
|
-
resolving. Implements [`dispatcher.close([callback])`][].
|
|
69
|
+
Returns [`PoolStats`](PoolStats.md) instance for this pool.
|
|
114
70
|
|
|
115
|
-
|
|
71
|
+
## Instance Methods
|
|
116
72
|
|
|
117
|
-
|
|
118
|
-
added: v7.17.0
|
|
119
|
-
-->
|
|
73
|
+
### `RoundRobinPool.close([callback])`
|
|
120
74
|
|
|
121
|
-
|
|
122
|
-
the given `error`. Implements [`dispatcher.destroy([error[, callback]])`][].
|
|
75
|
+
Implements [`Dispatcher.close([callback])`](/docs/docs/api/Dispatcher.md#dispatcherclosecallback-promise).
|
|
123
76
|
|
|
124
|
-
### `
|
|
77
|
+
### `RoundRobinPool.destroy([error, callback])`
|
|
125
78
|
|
|
126
|
-
|
|
127
|
-
added: v7.17.0
|
|
128
|
-
-->
|
|
79
|
+
Implements [`Dispatcher.destroy([error, callback])`](/docs/docs/api/Dispatcher.md#dispatcherdestroyerror-callback-promise).
|
|
129
80
|
|
|
130
|
-
|
|
131
|
-
[HTTP CONNECT][]. See [`dispatcher.connect(options[, callback])`][].
|
|
81
|
+
### `RoundRobinPool.connect(options[, callback])`
|
|
132
82
|
|
|
133
|
-
|
|
83
|
+
See [`Dispatcher.connect(options[, callback])`](/docs/docs/api/Dispatcher.md#dispatcherconnectoptions-callback).
|
|
134
84
|
|
|
135
|
-
|
|
136
|
-
added: v7.17.0
|
|
137
|
-
-->
|
|
85
|
+
### `RoundRobinPool.dispatch(options, handler)`
|
|
138
86
|
|
|
139
|
-
|
|
140
|
-
Implements [`dispatcher.dispatch(options, handler)`][].
|
|
87
|
+
Implements [`Dispatcher.dispatch(options, handler)`](/docs/docs/api/Dispatcher.md#dispatcherdispatchoptions-handler).
|
|
141
88
|
|
|
142
|
-
### `
|
|
89
|
+
### `RoundRobinPool.pipeline(options, handler)`
|
|
143
90
|
|
|
144
|
-
|
|
145
|
-
added: v7.17.0
|
|
146
|
-
-->
|
|
91
|
+
See [`Dispatcher.pipeline(options, handler)`](/docs/docs/api/Dispatcher.md#dispatcherpipelineoptions-handler).
|
|
147
92
|
|
|
148
|
-
|
|
149
|
-
[`dispatcher.pipeline(options, handler)`][].
|
|
93
|
+
### `RoundRobinPool.request(options[, callback])`
|
|
150
94
|
|
|
151
|
-
|
|
95
|
+
See [`Dispatcher.request(options [, callback])`](/docs/docs/api/Dispatcher.md#dispatcherrequestoptions-callback).
|
|
152
96
|
|
|
153
|
-
|
|
154
|
-
added: v7.17.0
|
|
155
|
-
-->
|
|
97
|
+
### `RoundRobinPool.stream(options, factory[, callback])`
|
|
156
98
|
|
|
157
|
-
|
|
99
|
+
See [`Dispatcher.stream(options, factory[, callback])`](/docs/docs/api/Dispatcher.md#dispatcherstreamoptions-factory-callback).
|
|
158
100
|
|
|
159
|
-
### `
|
|
101
|
+
### `RoundRobinPool.upgrade(options[, callback])`
|
|
160
102
|
|
|
161
|
-
|
|
162
|
-
added: v7.17.0
|
|
163
|
-
-->
|
|
103
|
+
See [`Dispatcher.upgrade(options[, callback])`](/docs/docs/api/Dispatcher.md#dispatcherupgradeoptions-callback).
|
|
164
104
|
|
|
165
|
-
|
|
166
|
-
[`dispatcher.stream(options, factory[, callback])`][].
|
|
167
|
-
|
|
168
|
-
### `roundRobinPool.upgrade(options[, callback])`
|
|
169
|
-
|
|
170
|
-
<!-- YAML
|
|
171
|
-
added: v7.17.0
|
|
172
|
-
-->
|
|
173
|
-
|
|
174
|
-
Upgrades a connection to a different protocol. See
|
|
175
|
-
[`dispatcher.upgrade(options[, callback])`][].
|
|
105
|
+
## Instance Events
|
|
176
106
|
|
|
177
107
|
### Event: `'connect'`
|
|
178
108
|
|
|
179
|
-
|
|
180
|
-
added: v7.17.0
|
|
181
|
-
-->
|
|
182
|
-
|
|
183
|
-
See [Dispatcher Event: `'connect'`][].
|
|
109
|
+
See [Dispatcher Event: `'connect'`](/docs/docs/api/Dispatcher.md#event-connect).
|
|
184
110
|
|
|
185
111
|
### Event: `'disconnect'`
|
|
186
112
|
|
|
187
|
-
|
|
188
|
-
added: v7.17.0
|
|
189
|
-
-->
|
|
190
|
-
|
|
191
|
-
See [Dispatcher Event: `'disconnect'`][].
|
|
113
|
+
See [Dispatcher Event: `'disconnect'`](/docs/docs/api/Dispatcher.md#event-disconnect).
|
|
192
114
|
|
|
193
115
|
### Event: `'drain'`
|
|
194
116
|
|
|
195
|
-
|
|
196
|
-
added: v7.17.0
|
|
197
|
-
-->
|
|
198
|
-
|
|
199
|
-
See [Dispatcher Event: `'drain'`][].
|
|
117
|
+
See [Dispatcher Event: `'drain'`](/docs/docs/api/Dispatcher.md#event-drain).
|
|
200
118
|
|
|
201
119
|
## Example
|
|
202
120
|
|
|
203
|
-
```
|
|
121
|
+
```javascript
|
|
204
122
|
import { RoundRobinPool } from 'undici'
|
|
205
123
|
|
|
206
|
-
const pool = new RoundRobinPool('http://
|
|
124
|
+
const pool = new RoundRobinPool('http://my-service.default.svc.cluster.local', {
|
|
207
125
|
connections: 10
|
|
208
126
|
})
|
|
209
127
|
|
|
210
|
-
// Requests
|
|
128
|
+
// Requests will be distributed evenly across all 10 connections
|
|
211
129
|
for (let i = 0; i < 100; i++) {
|
|
212
130
|
const { body } = await pool.request({
|
|
213
131
|
path: '/api/data',
|
|
@@ -219,21 +137,9 @@ for (let i = 0; i < 100; i++) {
|
|
|
219
137
|
await pool.close()
|
|
220
138
|
```
|
|
221
139
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
[
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
|
|
228
|
-
[`dispatcher.connect(options[, callback])`]: Dispatcher.md#dispatcherconnectoptions-callback
|
|
229
|
-
[`dispatcher.destroy([error[, callback]])`]: Dispatcher.md#dispatcherdestroyerror-callback-promise
|
|
230
|
-
[`dispatcher.dispatch(options, handler)`]: Dispatcher.md#dispatcherdispatchoptions-handler
|
|
231
|
-
[`dispatcher.pipeline(options, handler)`]: Dispatcher.md#dispatcherpipelineoptions-handler
|
|
232
|
-
[`dispatcher.request(options[, callback])`]: Dispatcher.md#dispatcherrequestoptions-callback
|
|
233
|
-
[`dispatcher.stream(options, factory[, callback])`]: Dispatcher.md#dispatcherstreamoptions-factory-callback
|
|
234
|
-
[`dispatcher.upgrade(options[, callback])`]: Dispatcher.md#dispatcherupgradeoptions-callback
|
|
235
|
-
[`roundRobinPool.request()`]: #roundrobinpoolrequestoptions-callback
|
|
236
|
-
[`stream.pipeline`]: https://nodejs.org/api/stream.html#streampipelinesource-transforms-destination-callback
|
|
237
|
-
[Dispatcher Event: `'connect'`]: Dispatcher.md#event-connect
|
|
238
|
-
[Dispatcher Event: `'disconnect'`]: Dispatcher.md#event-disconnect
|
|
239
|
-
[Dispatcher Event: `'drain'`]: Dispatcher.md#event-drain
|
|
140
|
+
## See Also
|
|
141
|
+
|
|
142
|
+
- [Pool](/docs/docs/api/Pool.md) - Connection pool without round-robin
|
|
143
|
+
- [BalancedPool](/docs/docs/api/BalancedPool.md) - Load balancing across multiple origins
|
|
144
|
+
- [Issue #3648](https://github.com/nodejs/undici/issues/3648) - Original issue describing uneven distribution
|
|
145
|
+
|