@anhdhbn/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 +19 -47
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +15 -15
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +6 -6
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +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 +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 +2 -2
- 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 +3 -3
- 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 +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 +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 +2 -2
- 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 +2 -2
- 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 +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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +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 +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 +2 -2
- 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 +15 -15
- package/app/.next-cli-build/server/chunks/1051.js +1 -1
- package/app/.next-cli-build/server/chunks/{9999.js → 1297.js} +2 -2
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/{4597.js → 1568.js} +1 -1
- package/app/.next-cli-build/server/chunks/1757.js +1 -1
- package/app/.next-cli-build/server/chunks/24.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/3885.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/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/{3783.js → 5299.js} +4 -4
- package/app/.next-cli-build/server/chunks/5330.js +34 -34
- package/app/.next-cli-build/server/chunks/5485.js +1 -1
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/5932.js +1 -0
- package/app/.next-cli-build/server/chunks/6054.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/6513.js +1 -1
- 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/7114.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/778.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/8402.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/8994.js +1 -1
- package/app/.next-cli-build/server/chunks/9198.js +1 -0
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9927.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 +3 -3
- 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/server/preview-props.json +3 -3
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-2fde166305caeddb.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-832391bf809808e3.js +7 -0
- package/app/.next-cli-build/static/chunks/{9134-dce513bebf49f409.js → 761-32ad2b1ee5ca216d.js} +10 -10
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-a1c51b0c7ad758ad.js → page-6abc904471ca5d9e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-407f76834b37cd6c.js → page-1f2d3a8531261f5a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-a09d4b437dec0273.js → page-624cd614b7bc1f8c.js} +11 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-f9f9e895a365e8d3.js → page-9ee6ec1d1ae265b8.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-efdb4d5aacfda8a6.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-371203e00dbb386a.js +4 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-cb6752cc71bde85f.js → page-98e943d2e0230bb1.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-9121f5a9bc6ae4d6.js +1 -0
- package/app/node_modules/undici/README.md +29 -116
- 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 -505
- 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 +18 -142
- 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 +89 -166
- package/app/node_modules/undici/lib/dispatcher/client-h2.js +373 -1306
- 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 +60 -101
- package/app/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -10
- package/app/node_modules/undici/lib/handler/decorator-handler.js +5 -14
- package/app/node_modules/undici/lib/handler/deduplication-handler.js +38 -74
- package/app/node_modules/undici/lib/handler/redirect-handler.js +72 -83
- 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 +28 -53
- 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 +48 -292
- 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 -90
- 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 +259 -297
- package/app/node_modules/undici/lib/web/fetch/request.js +170 -172
- 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/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 +30 -8
- 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 +12 -6
- 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/retry-handler.d.ts +3 -3
- 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/4811.js +0 -51
- package/app/.next-cli-build/server/chunks/547.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-02b05d77d17bcdc3.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-74ca3f1d4f1ec046.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-b44167799c6c673a.js +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-f16fd9091b7ae81c.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 -1065
- 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/{erY6mcU6WqDeuYANqpCwQ → mEL-faV-rpAwzfhUdVe-c}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{erY6mcU6WqDeuYANqpCwQ → mEL-faV-rpAwzfhUdVe-c}/_ssgManifest.js +0 -0
|
@@ -1,217 +1,86 @@
|
|
|
1
|
-
# Client
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
# Class: Client
|
|
2
|
+
|
|
3
|
+
Extends: `undici.Dispatcher`
|
|
4
|
+
|
|
5
|
+
A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
|
|
6
|
+
|
|
7
|
+
Requests are not guaranteed to be dispatched in order of invocation.
|
|
8
|
+
|
|
9
|
+
## `new Client(url[, options])`
|
|
10
|
+
|
|
11
|
+
Arguments:
|
|
12
|
+
|
|
13
|
+
* **url** `URL | string` - Should only include the **protocol, hostname, and port**.
|
|
14
|
+
* **options** `ClientOptions` (optional)
|
|
15
|
+
|
|
16
|
+
Returns: `Client`
|
|
17
|
+
|
|
18
|
+
### Parameter: `ClientOptions`
|
|
19
|
+
|
|
20
|
+
* **bodyTimeout** `number | null` (optional) - Default: `300e3` - The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Defaults to 300 seconds. Please note the `timeout` will be reset if you keep writing data to the socket everytime.
|
|
21
|
+
* **headersTimeout** `number | null` (optional) - Default: `300e3` - The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers while not sending the request. Defaults to 300 seconds.
|
|
22
|
+
* **keepAliveMaxTimeout** `number | null` (optional) - Default: `600e3` - The maximum allowed `keepAliveTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Defaults to 10 minutes.
|
|
23
|
+
* **keepAliveTimeout** `number | null` (optional) - Default: `4e3` - The timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. See [MDN: HTTP - Headers - Keep-Alive directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive#directives) for more details. Defaults to 4 seconds.
|
|
24
|
+
* **keepAliveTimeoutThreshold** `number | null` (optional) - Default: `2e3` - A number of milliseconds subtracted from server *keep-alive* hints when overriding `keepAliveTimeout` to account for timing inaccuracies caused by e.g. transport latency. Defaults to 2 seconds.
|
|
25
|
+
* **maxHeaderSize** `number | null` (optional) - Default: `--max-http-header-size` or `16384` - The maximum length of request headers in bytes. Defaults to Node.js' --max-http-header-size or 16KiB.
|
|
26
|
+
* **maxResponseSize** `number | null` (optional) - Default: `-1` - The maximum length of response body in bytes. Set to `-1` to disable.
|
|
27
|
+
* **webSocket** `WebSocketOptions` (optional) - WebSocket-specific configuration options.
|
|
28
|
+
* **maxFragments** `number` (optional) - Default: `131072` - Maximum number of fragments in a message. Set to 0 to disable the limit.
|
|
29
|
+
* **maxPayloadSize** `number` (optional) - Default: `134217728` (128 MB) - Maximum allowed payload size in bytes for WebSocket messages. Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages. Set to 0 to disable the limit.
|
|
30
|
+
* **eventSource** `EventSourceOptions` (optional) - EventSource-specific configuration options.
|
|
31
|
+
* **maxEventSize** `number` (optional) - The maximum total bytes of data and metadata field values retained for a pending EventSource event. Each unfinished line is separately limited to this value plus seven syntax bytes. The number of `data:` lines per event and input chunks buffered for an unfinished line are each limited to `min(131072, max(1024, floor(maxEventSize / 128)))` to bound object overhead. Set to `0` to disable these limits. Default: `buffer.kStringMaxLength`.
|
|
32
|
+
* **pipelining** `number | null` (optional) - Default: `1` - The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Carefully consider your workload and environment before enabling concurrent requests as pipelining may reduce performance if used incorrectly. Pipelining is sensitive to network stack settings as well as head of line blocking caused by e.g. long running requests. Set to `0` to disable keep-alive connections.
|
|
33
|
+
* **connect** `ConnectOptions | Function | null` (optional) - Default: `null`.
|
|
34
|
+
* **strictContentLength** `Boolean` (optional) - Default: `true` - Whether to treat request content length mismatches as errors. If true, an error is thrown when the request content-length header doesn't match the length of the request body. **Security Warning:** Disabling this option can expose your application to HTTP Request Smuggling attacks, where mismatched content-length headers cause servers and proxies to interpret request boundaries differently. This can lead to cache poisoning, credential hijacking, and bypassing security controls. Only disable this in controlled environments where you fully trust the request source.
|
|
35
|
+
* **autoSelectFamily**: `boolean` (optional) - Default: depends on local Node version, on Node 18.13.0 and above is `false`. Enables a family autodetection algorithm that loosely implements section 5 of [RFC 8305](https://tools.ietf.org/html/rfc8305#section-5). See [here](https://nodejs.org/api/net.html#socketconnectoptions-connectlistener) for more details. This option is ignored if not supported by the current Node version.
|
|
36
|
+
* **autoSelectFamilyAttemptTimeout**: `number` - Default: depends on local Node version, on Node 18.13.0 and above is `250`. The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. See [here](https://nodejs.org/api/net.html#socketconnectoptions-connectlistener) for more details.
|
|
37
|
+
* **allowH2**: `boolean` - Default: `false`. Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
|
|
38
|
+
* **useH2c**: `boolean` - Default: `false`. Enforces h2c for non-https connections.
|
|
39
|
+
* **maxConcurrentStreams**: `number` - Default: `100`. Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
|
|
40
|
+
* **initialWindowSize**: `number` (optional) - Default: `262144` (256KB). Sets the HTTP/2 stream-level flow-control window size (SETTINGS_INITIAL_WINDOW_SIZE). Must be a positive integer greater than 0. This default is higher than Node.js core's default (65535 bytes) to improve throughput, Node's choice is very conservative for current high-bandwith networks. See [RFC 7540 Section 6.9.2](https://datatracker.ietf.org/doc/html/rfc7540#section-6.9.2) for more details.
|
|
41
|
+
* **connectionWindowSize**: `number` (optional) - Default `524288` (512KB). Sets the HTTP/2 connection-level flow-control window size using `ClientHttp2Session.setLocalWindowSize()`. Must be a positive integer greater than 0. This provides better flow control for the entire connection across multiple streams. See [Node.js HTTP/2 documentation](https://nodejs.org/api/http2.html#clienthttp2sessionsetlocalwindowsize) for more details.
|
|
42
|
+
* **pingInterval**: `number` - Default: `60e3`. The time interval in milliseconds between PING frames sent to the server. Set to `0` to disable PING frames. This is only applicable for HTTP/2 connections. This will emit a `ping` event on the client with the duration of the ping in milliseconds.
|
|
43
|
+
|
|
44
|
+
> **Notes about HTTP/2**
|
|
45
|
+
> - It only works under TLS connections. h2c is not supported.
|
|
46
|
+
> - The server must support HTTP/2 and choose it as the protocol during the ALPN negotiation.
|
|
47
|
+
> - The server must not have a bigger priority for HTTP/1.1 than HTTP/2.
|
|
48
|
+
> - Pseudo headers are automatically attached to the request. If you try to set them, they will be overwritten.
|
|
49
|
+
> - The `:path` header is automatically set to the request path.
|
|
50
|
+
> - The `:method` header is automatically set to the request method.
|
|
51
|
+
> - The `:scheme` header is automatically set to the request scheme.
|
|
52
|
+
> - The `:authority` header is automatically set to the request `host[:port]`.
|
|
53
|
+
> - `PUSH` frames are yet not supported.
|
|
54
|
+
|
|
55
|
+
#### Parameter: `ConnectOptions`
|
|
56
|
+
|
|
57
|
+
Every Tls option, see [here](https://nodejs.org/api/tls.html#tls_tls_connect_options_callback).
|
|
58
|
+
Furthermore, the following options can be passed:
|
|
59
|
+
|
|
60
|
+
* **socketPath** `string | null` (optional) - Default: `null` - An IPC endpoint, either Unix domain socket or Windows named pipe.
|
|
61
|
+
* **maxCachedSessions** `number | null` (optional) - Default: `100` - Maximum number of TLS cached sessions. Use 0 to disable TLS session caching. Default: 100.
|
|
62
|
+
* **timeout** `number | null` (optional) - In milliseconds, Default `10e3`.
|
|
63
|
+
* **servername** `string | null` (optional)
|
|
64
|
+
* **keepAlive** `boolean | null` (optional) - Default: `true` - TCP keep-alive enabled
|
|
65
|
+
* **keepAliveInitialDelay** `number | null` (optional) - Default: `60000` - TCP keep-alive interval for the socket in milliseconds
|
|
66
|
+
|
|
67
|
+
### Example - Basic Client instantiation
|
|
68
|
+
|
|
69
|
+
This will instantiate the undici Client, but it will not connect to the origin until something is queued. Consider using `client.connect` to prematurely connect to the origin, or just call `client.request`.
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
'use strict'
|
|
22
73
|
import { Client } from 'undici'
|
|
23
74
|
|
|
24
75
|
const client = new Client('http://localhost:3000')
|
|
25
|
-
const { statusCode, body } = await client.request({ path: '/', method: 'GET' })
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Class: `Client`
|
|
29
|
-
|
|
30
|
-
<!-- YAML
|
|
31
|
-
added: v1.0.0
|
|
32
|
-
-->
|
|
33
|
-
|
|
34
|
-
* Extends: {Dispatcher}
|
|
35
|
-
|
|
36
|
-
### `new Client(url[, options])`
|
|
37
|
-
|
|
38
|
-
<!-- YAML
|
|
39
|
-
added: v1.0.0
|
|
40
|
-
-->
|
|
41
|
-
|
|
42
|
-
* `url` {URL|string} The origin to connect to. Only the protocol, hostname, and
|
|
43
|
-
port are used.
|
|
44
|
-
* `options` {Object} (optional)
|
|
45
|
-
* `bodyTimeout` {number|null} The timeout, in milliseconds, after which a
|
|
46
|
-
request times out while receiving body data. Monitors the time between
|
|
47
|
-
consecutive body chunks. Use `0` to disable it entirely. **Default:**
|
|
48
|
-
`300e3`.
|
|
49
|
-
* `headersTimeout` {number|null} The timeout, in milliseconds, the parser
|
|
50
|
-
waits to receive the complete HTTP headers before the request times out. Use
|
|
51
|
-
`0` to disable it entirely. **Default:** `300e3`.
|
|
52
|
-
HTTP/1.1 headers/body parser timeouts are not guaranteed to fire with exact
|
|
53
|
-
millisecond precision: delays up to 1000ms use native timers, while larger
|
|
54
|
-
delays use undici's lower-overhead fast timers with a target resolution
|
|
55
|
-
around 500ms.
|
|
56
|
-
* `connectTimeout` {number|null} The timeout, in milliseconds, for
|
|
57
|
-
establishing a socket connection. Use `0` to disable it entirely.
|
|
58
|
-
**Default:** `10e3`.
|
|
59
|
-
* `keepAliveTimeout` {number|null} The timeout, in milliseconds, after which a
|
|
60
|
-
socket with no active requests times out. Monitors the time between activity
|
|
61
|
-
on a connected socket. This value may be overridden by *keep-alive* hints
|
|
62
|
-
from the server. **Default:** `4e3`.
|
|
63
|
-
* `keepAliveMaxTimeout` {number|null} The maximum allowed `keepAliveTimeout`,
|
|
64
|
-
in milliseconds, when overridden by *keep-alive* hints from the server.
|
|
65
|
-
**Default:** `600e3`.
|
|
66
|
-
* `keepAliveTimeoutThreshold` {number|null} A number of milliseconds
|
|
67
|
-
subtracted from server *keep-alive* hints when overriding `keepAliveTimeout`,
|
|
68
|
-
to account for timing inaccuracies caused by e.g. transport latency.
|
|
69
|
-
**Default:** `2e3`.
|
|
70
|
-
* `maxHeaderSize` {number|null} The maximum length of request headers, in
|
|
71
|
-
bytes. **Default:** the value of Node.js' `--max-http-header-size` or
|
|
72
|
-
`16384` (16 KiB).
|
|
73
|
-
* `maxResponseSize` {number|null} The maximum length of a response body, in
|
|
74
|
-
bytes. Set to `-1` to disable it. **Default:** `-1`.
|
|
75
|
-
* `maxRequestsPerClient` {number|null} The maximum number of requests to send
|
|
76
|
-
over a single connection before the socket is reset. Use `0` to disable this
|
|
77
|
-
limit. **Default:** `null`.
|
|
78
|
-
* `localAddress` {string|null} The local IP address the socket should connect
|
|
79
|
-
from. **Default:** `null`.
|
|
80
|
-
* `pipelining` {number|null} The number of concurrent requests sent over the
|
|
81
|
-
single connection, per [RFC 7230, section 6.3.2][]. Only enable values
|
|
82
|
-
greater than `1` when the remote server is trusted. Set to `0` to disable
|
|
83
|
-
keep-alive connections. Has no effect once HTTP/2 is negotiated; see
|
|
84
|
-
`maxConcurrentStreams` for the HTTP/2 dispatch ceiling. **Default:** `1`.
|
|
85
|
-
* `connect` {Object|Function|null} Configures how connections are established.
|
|
86
|
-
Either a `ConnectOptions` object passed to the built-in
|
|
87
|
-
[`buildConnector`][] (every [`tls.connect()`][] option is accepted, plus the
|
|
88
|
-
fields below), or a custom connector function with the signature
|
|
89
|
-
`(options, callback)`. **Default:** `null`.
|
|
90
|
-
* `socketPath` {string|null} An IPC endpoint, either a Unix domain socket or
|
|
91
|
-
a Windows named pipe. **Default:** `null`.
|
|
92
|
-
* `maxCachedSessions` {number|null} The maximum number of cached TLS
|
|
93
|
-
sessions. Use `0` to disable TLS session caching. **Default:** `100`.
|
|
94
|
-
* `timeout` {number|null} The connection timeout, in milliseconds.
|
|
95
|
-
**Default:** `10e3`.
|
|
96
|
-
* `servername` {string|null} The TLS server name used for SNI.
|
|
97
|
-
* `keepAlive` {boolean|null} Whether TCP keep-alive is enabled on the socket.
|
|
98
|
-
**Default:** `true`.
|
|
99
|
-
* `keepAliveInitialDelay` {number|null} The TCP keep-alive interval for the
|
|
100
|
-
socket, in milliseconds. **Default:** `60000`.
|
|
101
|
-
* `strictContentLength` {boolean} Whether to throw when the request
|
|
102
|
-
`content-length` header does not match the length of the request body.
|
|
103
|
-
Disabling this exposes the application to HTTP request smuggling; only do so
|
|
104
|
-
in controlled environments where the request source is fully trusted.
|
|
105
|
-
**Default:** `true`.
|
|
106
|
-
* `autoSelectFamily` {boolean} Enables a family autodetection algorithm that
|
|
107
|
-
loosely implements section 5 of [RFC 8305][]. Ignored if unsupported by the
|
|
108
|
-
current Node.js version. **Default:** `false`.
|
|
109
|
-
* `autoSelectFamilyAttemptTimeout` {number} The time, in milliseconds, to wait
|
|
110
|
-
for a connection attempt to finish before trying the next address when
|
|
111
|
-
`autoSelectFamily` is enabled. **Default:** `250`.
|
|
112
|
-
* `allowH2` {boolean} Enables HTTP/2 support when the server assigns it a
|
|
113
|
-
higher priority through ALPN negotiation. **Default:** `true`.
|
|
114
|
-
* `useH2c` {boolean} _Deprecated: use h2Options.useH2c instead_ Enforces h2c (HTTP/2 cleartext) for non-HTTPS
|
|
115
|
-
connections. **Default:** `false`.
|
|
116
|
-
* `maxConcurrentStreams` {number} _Deprecated: use h2Options.useH2c instead_ The maximum number of concurrent HTTP/2
|
|
117
|
-
streams for a single session. Once h2 is negotiated this — not `pipelining`,
|
|
118
|
-
which is HTTP/1.1 only — is the ceiling used to dispatch in-flight requests.
|
|
119
|
-
The server's `SETTINGS_MAX_CONCURRENT_STREAMS` can lower this limit, but
|
|
120
|
-
not raise it. **Default:** `100`.
|
|
121
|
-
* `connectionWindowSize` {number} _Deprecated: use h2Options.connectionWindowSize instead_ The HTTP/2 connection-level flow-control
|
|
122
|
-
window size set via `ClientHttp2Session.setLocalWindowSize()`. Must be a
|
|
123
|
-
positive integer. **Default:** `524288`.
|
|
124
|
-
* `pingInterval` {number} _Deprecated: use h2Options.pingInterval instead_ The time interval, in milliseconds, between HTTP/2
|
|
125
|
-
PING frames. Set to `0` to disable PING frames. Applies only to HTTP/2
|
|
126
|
-
connections and emits a `ping` event on the client. **Default:** `60e3`.
|
|
127
|
-
* `h2Options` {object} Set of options for HTTP/2 sessions
|
|
128
|
-
* `useH2c` {boolean} Enforces h2c (HTTP/2 cleartext) for non-HTTPS
|
|
129
|
-
connections. **Default:** `false`.
|
|
130
|
-
* `maxConcurrentStreams` {number} The maximum number of concurrent HTTP/2
|
|
131
|
-
streams for a single session. Once h2 is negotiated this — not `pipelining`,
|
|
132
|
-
which is HTTP/1.1 only — is the ceiling used to dispatch in-flight requests.
|
|
133
|
-
The server's `SETTINGS_MAX_CONCURRENT_STREAMS` can lower this limit, but
|
|
134
|
-
not raise it. **Default:** `100`.
|
|
135
|
-
* `connectionWindowSize` {number} The HTTP/2 connection-level flow-control
|
|
136
|
-
window size set via `ClientHttp2Session.setLocalWindowSize()`. Must be a
|
|
137
|
-
positive integer. **Default:** `524288`.
|
|
138
|
-
* `pingInterval` {number} The time interval, in milliseconds, between HTTP/2
|
|
139
|
-
PING frames. Set to `0` to disable PING frames. Applies only to HTTP/2
|
|
140
|
-
connections and emits a `ping` event on the client. **Default:** `60e3`.
|
|
141
|
-
* `settings` {object} `SETTINGS` frame options. For full reference, take a
|
|
142
|
-
look to [HTTP/2#Settings Object](https://nodejs.org/api/http2.html#settings-object)
|
|
143
|
-
* `webSocket` {Object} (optional) WebSocket-specific configuration.
|
|
144
|
-
* `maxFragments` {number} The maximum number of fragments in a message. Set
|
|
145
|
-
to `0` to disable the limit. **Default:** `131072`.
|
|
146
|
-
* `maxPayloadSize` {number} The maximum allowed payload size, in bytes, for
|
|
147
|
-
WebSocket messages. Applied to uncompressed messages, compressed frame
|
|
148
|
-
payloads, and decompressed (`permessage-deflate`) messages. Set to `0` to
|
|
149
|
-
disable the limit. **Default:** `134217728`.
|
|
150
|
-
* `eventSource` {Object} (optional) EventSource-specific configuration.
|
|
151
|
-
* `maxEventSize` {number} The maximum total bytes of data and metadata
|
|
152
|
-
field values retained for a pending EventSource event. Each unfinished
|
|
153
|
-
line is separately limited to this value plus seven syntax bytes, before
|
|
154
|
-
its line ending arrives. The number of `data:` lines per event and input
|
|
155
|
-
chunks buffered for an unfinished line are each limited to
|
|
156
|
-
`min(131072, max(1024, floor(maxEventSize / 128)))` to bound object overhead.
|
|
157
|
-
Set to `0` to disable these limits.
|
|
158
|
-
**Default:** `buffer.kStringMaxLength`.
|
|
159
|
-
* Returns: {Client}
|
|
160
|
-
|
|
161
|
-
Instantiating a `Client` does not open a connection; the connection is
|
|
162
|
-
established lazily once a request is queued. Call `client.connect()` to connect
|
|
163
|
-
eagerly.
|
|
164
|
-
|
|
165
|
-
> Notes about HTTP/2:
|
|
166
|
-
>
|
|
167
|
-
> * Pseudo headers (`:path`, `:method`, `:scheme`, `:authority`) are attached
|
|
168
|
-
> automatically and overwrite any user-provided values.
|
|
169
|
-
> * The server must support HTTP/2 and select it during ALPN negotiation, and
|
|
170
|
-
> must not give HTTP/1.1 a higher priority than HTTP/2.
|
|
171
|
-
> * `PUSH` frames are not supported.
|
|
172
|
-
|
|
173
|
-
```mjs displayName="Basic instantiation"
|
|
174
|
-
import { Client } from 'undici'
|
|
175
|
-
|
|
176
|
-
const client = new Client('http://localhost:3000')
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
```mjs displayName="TLS options (object connector)"
|
|
180
|
-
import { Client } from 'undici'
|
|
181
|
-
import { readFileSync } from 'node:fs'
|
|
182
|
-
|
|
183
|
-
const client = new Client('https://localhost:3000', {
|
|
184
|
-
connect: {
|
|
185
|
-
rejectUnauthorized: false,
|
|
186
|
-
ca: readFileSync('./ca-cert.pem')
|
|
187
|
-
}
|
|
188
|
-
})
|
|
189
76
|
```
|
|
190
77
|
|
|
191
|
-
|
|
192
|
-
import { Client } from 'undici'
|
|
78
|
+
### Example - Custom connector
|
|
193
79
|
|
|
194
|
-
|
|
195
|
-
connect: {
|
|
196
|
-
socketPath: '/var/run/docker.sock'
|
|
197
|
-
}
|
|
198
|
-
})
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
```mjs displayName="Custom DNS lookup"
|
|
202
|
-
import { Client } from 'undici'
|
|
203
|
-
import dns from 'node:dns'
|
|
80
|
+
This will allow you to perform some additional check on the socket that will be used for the next request.
|
|
204
81
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
lookup (hostname, options, callback) {
|
|
208
|
-
dns.lookup(hostname, { ...options, family: 4 }, callback)
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
})
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
```mjs displayName="Custom connector (function)"
|
|
82
|
+
```js
|
|
83
|
+
'use strict'
|
|
215
84
|
import { Client, buildConnector } from 'undici'
|
|
216
85
|
|
|
217
86
|
const connector = buildConnector({ rejectUnauthorized: false })
|
|
@@ -220,6 +89,9 @@ const client = new Client('https://localhost:3000', {
|
|
|
220
89
|
connector(opts, (err, socket) => {
|
|
221
90
|
if (err) {
|
|
222
91
|
cb(err)
|
|
92
|
+
} else if (/* assertion */) {
|
|
93
|
+
socket.destroy()
|
|
94
|
+
cb(new Error('kaboom'))
|
|
223
95
|
} else {
|
|
224
96
|
cb(null, socket)
|
|
225
97
|
}
|
|
@@ -228,180 +100,81 @@ const client = new Client('https://localhost:3000', {
|
|
|
228
100
|
})
|
|
229
101
|
```
|
|
230
102
|
|
|
231
|
-
|
|
232
|
-
`socketPath` and `allowH2` into the `options` argument when those values are set
|
|
233
|
-
on the client. See [`Connector`][] for details on building custom connectors.
|
|
234
|
-
|
|
235
|
-
### `client.close([callback])`
|
|
236
|
-
|
|
237
|
-
<!-- YAML
|
|
238
|
-
added: v1.0.0
|
|
239
|
-
-->
|
|
240
|
-
|
|
241
|
-
Implements [`dispatcher.close([callback])`][]. Closes the client gracefully,
|
|
242
|
-
waiting for enqueued requests to complete before resolving.
|
|
243
|
-
|
|
244
|
-
### `client.destroy([error[, callback]])`
|
|
245
|
-
|
|
246
|
-
<!-- YAML
|
|
247
|
-
added: v1.0.0
|
|
248
|
-
-->
|
|
103
|
+
## Instance Methods
|
|
249
104
|
|
|
250
|
-
|
|
251
|
-
abruptly, aborting all pending and running requests, and waits until the socket
|
|
252
|
-
is closed before invoking `callback` (or resolving the returned promise).
|
|
105
|
+
### `Client.close([callback])`
|
|
253
106
|
|
|
254
|
-
|
|
107
|
+
Implements [`Dispatcher.close([callback])`](/docs/docs/api/Dispatcher.md#dispatcherclosecallback-promise).
|
|
255
108
|
|
|
256
|
-
|
|
257
|
-
added: v1.0.0
|
|
258
|
-
-->
|
|
109
|
+
### `Client.destroy([error, callback])`
|
|
259
110
|
|
|
260
|
-
|
|
261
|
-
[`dispatcher.connect()`][] except that `origin` is omitted because the client
|
|
262
|
-
is bound to a single origin.
|
|
263
|
-
* `callback` {Function} (optional)
|
|
264
|
-
* Returns: {Promise|void} A promise when `callback` is not provided.
|
|
111
|
+
Implements [`Dispatcher.destroy([error, callback])`](/docs/docs/api/Dispatcher.md#dispatcherdestroyerror-callback-promise).
|
|
265
112
|
|
|
266
|
-
|
|
267
|
-
as defined by [`dispatcher.connect()`][].
|
|
113
|
+
Waits until socket is closed before invoking the callback (or returning a promise if no callback is provided).
|
|
268
114
|
|
|
269
|
-
### `
|
|
115
|
+
### `Client.connect(options[, callback])`
|
|
270
116
|
|
|
271
|
-
|
|
272
|
-
added: v1.0.0
|
|
273
|
-
-->
|
|
117
|
+
See [`Dispatcher.connect(options[, callback])`](/docs/docs/api/Dispatcher.md#dispatcherconnectoptions-callback).
|
|
274
118
|
|
|
275
|
-
|
|
276
|
-
API used by all other request methods; prefer `client.request()` for most use
|
|
277
|
-
cases.
|
|
119
|
+
### `Client.dispatch(options, handlers)`
|
|
278
120
|
|
|
279
|
-
|
|
121
|
+
Implements [`Dispatcher.dispatch(options, handlers)`](/docs/docs/api/Dispatcher.md#dispatcherdispatchoptions-handler).
|
|
280
122
|
|
|
281
|
-
|
|
282
|
-
added: v1.0.0
|
|
283
|
-
-->
|
|
123
|
+
### `Client.pipeline(options, handler)`
|
|
284
124
|
|
|
285
|
-
See [`
|
|
286
|
-
{Duplex} stream that the request body is written to and the response body is
|
|
287
|
-
read from.
|
|
125
|
+
See [`Dispatcher.pipeline(options, handler)`](/docs/docs/api/Dispatcher.md#dispatcherpipelineoptions-handler).
|
|
288
126
|
|
|
289
|
-
### `
|
|
127
|
+
### `Client.request(options[, callback])`
|
|
290
128
|
|
|
291
|
-
|
|
292
|
-
added: v1.0.0
|
|
293
|
-
-->
|
|
129
|
+
See [`Dispatcher.request(options [, callback])`](/docs/docs/api/Dispatcher.md#dispatcherrequestoptions-callback).
|
|
294
130
|
|
|
295
|
-
|
|
296
|
-
* `callback` {Function} (optional)
|
|
297
|
-
* Returns: {Promise|void} A promise resolving to the response data when
|
|
298
|
-
`callback` is not provided.
|
|
131
|
+
### `Client.stream(options, factory[, callback])`
|
|
299
132
|
|
|
300
|
-
See [`
|
|
301
|
-
returns its status code, headers, trailers, and a readable body stream.
|
|
133
|
+
See [`Dispatcher.stream(options, factory[, callback])`](/docs/docs/api/Dispatcher.md#dispatcherstreamoptions-factory-callback).
|
|
302
134
|
|
|
303
|
-
|
|
304
|
-
import { Client } from 'undici'
|
|
305
|
-
|
|
306
|
-
const client = new Client('http://localhost:3000')
|
|
307
|
-
const { statusCode, headers, body } = await client.request({
|
|
308
|
-
path: '/',
|
|
309
|
-
method: 'GET'
|
|
310
|
-
})
|
|
311
|
-
|
|
312
|
-
console.log(statusCode)
|
|
313
|
-
for await (const chunk of body) {
|
|
314
|
-
console.log(chunk.toString())
|
|
315
|
-
}
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
### `client.stream(options, factory[, callback])`
|
|
319
|
-
|
|
320
|
-
<!-- YAML
|
|
321
|
-
added: v1.0.0
|
|
322
|
-
-->
|
|
135
|
+
### `Client.upgrade(options[, callback])`
|
|
323
136
|
|
|
324
|
-
|
|
325
|
-
* `factory` {Function} Returns a {Writable} the response body is piped into.
|
|
326
|
-
* `callback` {Function} (optional)
|
|
327
|
-
* Returns: {Promise|void} A promise when `callback` is not provided.
|
|
137
|
+
See [`Dispatcher.upgrade(options[, callback])`](/docs/docs/api/Dispatcher.md#dispatcherupgradeoptions-callback).
|
|
328
138
|
|
|
329
|
-
|
|
330
|
-
to `client.request()` when the destination of the response body is known in
|
|
331
|
-
advance.
|
|
139
|
+
## Instance Properties
|
|
332
140
|
|
|
333
|
-
### `
|
|
141
|
+
### `Client.closed`
|
|
334
142
|
|
|
335
|
-
|
|
336
|
-
added: v1.0.0
|
|
337
|
-
-->
|
|
338
|
-
|
|
339
|
-
* `options` {Object}
|
|
340
|
-
* `callback` {Function} (optional)
|
|
341
|
-
* Returns: {Promise|void} A promise when `callback` is not provided.
|
|
342
|
-
|
|
343
|
-
See [`dispatcher.upgrade(options[, callback])`][]. Upgrades a connection to a
|
|
344
|
-
different protocol, such as for WebSocket or HTTP `CONNECT`.
|
|
345
|
-
|
|
346
|
-
### `client.closed`
|
|
347
|
-
|
|
348
|
-
<!-- YAML
|
|
349
|
-
added: v1.0.0
|
|
350
|
-
-->
|
|
351
|
-
|
|
352
|
-
* Type: {boolean}
|
|
143
|
+
* `boolean`
|
|
353
144
|
|
|
354
145
|
`true` after `client.close()` has been called.
|
|
355
146
|
|
|
356
|
-
### `
|
|
357
|
-
|
|
358
|
-
<!-- YAML
|
|
359
|
-
added: v1.0.0
|
|
360
|
-
-->
|
|
361
|
-
|
|
362
|
-
* Type: {boolean}
|
|
363
|
-
|
|
364
|
-
`true` after `client.destroy()` has been called, or after `client.close()` has
|
|
365
|
-
been called and the client shutdown has completed.
|
|
147
|
+
### `Client.destroyed`
|
|
366
148
|
|
|
367
|
-
|
|
149
|
+
* `boolean`
|
|
368
150
|
|
|
369
|
-
|
|
370
|
-
added: v1.0.0
|
|
371
|
-
-->
|
|
151
|
+
`true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed.
|
|
372
152
|
|
|
373
|
-
|
|
153
|
+
### `Client.pipelining`
|
|
374
154
|
|
|
375
|
-
|
|
376
|
-
number of concurrent requests sent over the connection. Only enable pipelining
|
|
377
|
-
with trusted remote servers.
|
|
155
|
+
* `number`
|
|
378
156
|
|
|
379
|
-
|
|
157
|
+
Property to get and set the pipelining factor.
|
|
380
158
|
|
|
381
|
-
|
|
382
|
-
added: v7.9.0
|
|
383
|
-
-->
|
|
159
|
+
## Instance Events
|
|
384
160
|
|
|
385
|
-
|
|
161
|
+
### Event: `'connect'`
|
|
386
162
|
|
|
387
|
-
|
|
163
|
+
See [Dispatcher Event: `'connect'`](/docs/docs/api/Dispatcher.md#event-connect).
|
|
388
164
|
|
|
389
|
-
|
|
165
|
+
Parameters:
|
|
390
166
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
-->
|
|
167
|
+
* **origin** `URL`
|
|
168
|
+
* **targets** `Array<Dispatcher>`
|
|
394
169
|
|
|
395
|
-
|
|
396
|
-
* `targets` {Array<Dispatcher>}
|
|
170
|
+
Emitted when a socket has been created and connected. The client will connect once `client.size > 0`.
|
|
397
171
|
|
|
398
|
-
|
|
399
|
-
`client.size > 0`. See [`Dispatcher` Event: `'connect'`][].
|
|
172
|
+
#### Example - Client connect event
|
|
400
173
|
|
|
401
|
-
```
|
|
402
|
-
import { createServer } from '
|
|
174
|
+
```js
|
|
175
|
+
import { createServer } from 'http'
|
|
403
176
|
import { Client } from 'undici'
|
|
404
|
-
import { once } from '
|
|
177
|
+
import { once } from 'events'
|
|
405
178
|
|
|
406
179
|
const server = createServer((request, response) => {
|
|
407
180
|
response.end('Hello, World!')
|
|
@@ -412,40 +185,43 @@ await once(server, 'listening')
|
|
|
412
185
|
const client = new Client(`http://localhost:${server.address().port}`)
|
|
413
186
|
|
|
414
187
|
client.on('connect', (origin) => {
|
|
415
|
-
console.log(`Connected to ${origin}`)
|
|
188
|
+
console.log(`Connected to ${origin}`) // should print before the request body statement
|
|
416
189
|
})
|
|
417
190
|
|
|
418
|
-
|
|
419
|
-
body.
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
191
|
+
try {
|
|
192
|
+
const { body } = await client.request({
|
|
193
|
+
path: '/',
|
|
194
|
+
method: 'GET'
|
|
195
|
+
})
|
|
196
|
+
body.setEncoding('utf-8')
|
|
197
|
+
body.on('data', console.log)
|
|
198
|
+
client.close()
|
|
199
|
+
server.close()
|
|
200
|
+
} catch (error) {
|
|
201
|
+
console.error(error)
|
|
202
|
+
client.close()
|
|
203
|
+
server.close()
|
|
204
|
+
}
|
|
424
205
|
```
|
|
425
206
|
|
|
426
207
|
### Event: `'disconnect'`
|
|
427
208
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
caused the disconnection. The client reconnects if or once `client.size > 0`.
|
|
443
|
-
See [`Dispatcher` Event: `'disconnect'`][].
|
|
444
|
-
|
|
445
|
-
```mjs
|
|
446
|
-
import { createServer } from 'node:http'
|
|
209
|
+
See [Dispatcher Event: `'disconnect'`](/docs/docs/api/Dispatcher.md#event-disconnect).
|
|
210
|
+
|
|
211
|
+
Parameters:
|
|
212
|
+
|
|
213
|
+
* **origin** `URL`
|
|
214
|
+
* **targets** `Array<Dispatcher>`
|
|
215
|
+
* **error** `Error`
|
|
216
|
+
|
|
217
|
+
Emitted when socket has disconnected. The error argument of the event is the error which caused the socket to disconnect. The client will reconnect if or once `client.size > 0`.
|
|
218
|
+
|
|
219
|
+
#### Example - Client disconnect event
|
|
220
|
+
|
|
221
|
+
```js
|
|
222
|
+
import { createServer } from 'http'
|
|
447
223
|
import { Client } from 'undici'
|
|
448
|
-
import { once } from '
|
|
224
|
+
import { once } from 'events'
|
|
449
225
|
|
|
450
226
|
const server = createServer((request, response) => {
|
|
451
227
|
response.destroy()
|
|
@@ -460,10 +236,12 @@ client.on('disconnect', (origin) => {
|
|
|
460
236
|
})
|
|
461
237
|
|
|
462
238
|
try {
|
|
463
|
-
await client.request({
|
|
239
|
+
await client.request({
|
|
240
|
+
path: '/',
|
|
241
|
+
method: 'GET'
|
|
242
|
+
})
|
|
464
243
|
} catch (error) {
|
|
465
244
|
console.error(error.message)
|
|
466
|
-
} finally {
|
|
467
245
|
client.close()
|
|
468
246
|
server.close()
|
|
469
247
|
}
|
|
@@ -471,19 +249,16 @@ try {
|
|
|
471
249
|
|
|
472
250
|
### Event: `'drain'`
|
|
473
251
|
|
|
474
|
-
|
|
475
|
-
added: v1.0.0
|
|
476
|
-
-->
|
|
252
|
+
Emitted when pipeline is no longer busy.
|
|
477
253
|
|
|
478
|
-
|
|
254
|
+
See [Dispatcher Event: `'drain'`](/docs/docs/api/Dispatcher.md#event-drain).
|
|
479
255
|
|
|
480
|
-
|
|
481
|
-
[`Dispatcher` Event: `'drain'`][].
|
|
256
|
+
#### Example - Client drain event
|
|
482
257
|
|
|
483
|
-
```
|
|
484
|
-
import { createServer } from '
|
|
258
|
+
```js
|
|
259
|
+
import { createServer } from 'http'
|
|
485
260
|
import { Client } from 'undici'
|
|
486
|
-
import { once } from '
|
|
261
|
+
import { once } from 'events'
|
|
487
262
|
|
|
488
263
|
const server = createServer((request, response) => {
|
|
489
264
|
response.end('Hello, World!')
|
|
@@ -499,40 +274,17 @@ client.on('drain', () => {
|
|
|
499
274
|
server.close()
|
|
500
275
|
})
|
|
501
276
|
|
|
502
|
-
|
|
277
|
+
const requests = [
|
|
503
278
|
client.request({ path: '/', method: 'GET' }),
|
|
504
279
|
client.request({ path: '/', method: 'GET' }),
|
|
505
280
|
client.request({ path: '/', method: 'GET' })
|
|
506
|
-
]
|
|
281
|
+
]
|
|
282
|
+
|
|
283
|
+
await Promise.all(requests)
|
|
284
|
+
|
|
285
|
+
console.log('requests completed')
|
|
507
286
|
```
|
|
508
287
|
|
|
509
288
|
### Event: `'error'`
|
|
510
289
|
|
|
511
|
-
|
|
512
|
-
added: v1.0.0
|
|
513
|
-
-->
|
|
514
|
-
|
|
515
|
-
* `error` {Error}
|
|
516
|
-
|
|
517
|
-
Emitted for user errors, such as throwing inside an `onResponseError` handler.
|
|
518
|
-
|
|
519
|
-
[RFC 7230, section 6.3.2]: https://tools.ietf.org/html/rfc7230#section-6.3.2
|
|
520
|
-
[RFC 8305]: https://tools.ietf.org/html/rfc8305#section-5
|
|
521
|
-
[`Agent`]: Agent.md#class-agent
|
|
522
|
-
[`ClientStats`]: ClientStats.md
|
|
523
|
-
[`Connector`]: Connector.md
|
|
524
|
-
[`Dispatcher` Event: `'connect'`]: Dispatcher.md#event-connect
|
|
525
|
-
[`Dispatcher` Event: `'disconnect'`]: Dispatcher.md#event-disconnect
|
|
526
|
-
[`Dispatcher` Event: `'drain'`]: Dispatcher.md#event-drain
|
|
527
|
-
[`Dispatcher`]: Dispatcher.md#class-dispatcher
|
|
528
|
-
[`Pool`]: Pool.md#class-pool
|
|
529
|
-
[`buildConnector`]: Connector.md
|
|
530
|
-
[`dispatcher.close([callback])`]: Dispatcher.md#dispatcherclosecallback
|
|
531
|
-
[`dispatcher.connect()`]: Dispatcher.md#dispatcherconnectoptions-callback
|
|
532
|
-
[`dispatcher.destroy([error[, callback]])`]: Dispatcher.md#dispatcherdestroyerror-callback
|
|
533
|
-
[`dispatcher.dispatch(options, handler)`]: Dispatcher.md#dispatcherdispatchoptions-handler
|
|
534
|
-
[`dispatcher.pipeline(options, handler)`]: Dispatcher.md#dispatcherpipelineoptions-handler
|
|
535
|
-
[`dispatcher.request(options[, callback])`]: Dispatcher.md#dispatcherrequestoptions-callback
|
|
536
|
-
[`dispatcher.stream(options, factory[, callback])`]: Dispatcher.md#dispatcherstreamoptions-factory-callback
|
|
537
|
-
[`dispatcher.upgrade(options[, callback])`]: Dispatcher.md#dispatcherupgradeoptions-callback
|
|
538
|
-
[`tls.connect()`]: https://nodejs.org/api/tls.html#tlsconnectoptions-callback
|
|
290
|
+
Invoked for users errors such as throwing in the `onError` handler.
|