1---2name: ky3description: Provides a concise reference for using the Ky HTTP client, covering core usage, options, retries, hooks, error handling, and best practices.4---56> 该 skill 基于 Ky v1.14.3,生成于 2026-02-04。78Ky is a tiny and elegant HTTP client based on the Fetch API. It provides a simpler and more powerful API than plain fetch with no dependencies, targeting modern browsers, Node.js 18+, Bun, and Deno.910## Core References1112| Topic | Description | Reference |13|-------|-------------|-----------|14| Basic Usage | HTTP method shortcuts, response body methods, TypeScript support | [core-usage](references/core-usage.md) |15| Core Options | json, searchParams, prefixUrl, timeout, method | [core-options](references/core-options.md) |1617## Features1819### Retry Mechanism2021| Topic | Description | Reference |22|-------|-------------|-----------|23| Automatic Retry | Configurable retry strategies, delays, jitter, custom logic | [feature-retry](references/feature-retry.md) |2425### Hooks System2627| Topic | Description | Reference |28|-------|-------------|-----------|29| Lifecycle Hooks | beforeRequest, beforeRetry, afterResponse, beforeError hooks | [feature-hooks](references/feature-hooks.md) |3031### Instance Management3233| Topic | Description | Reference |34|-------|-------------|-----------|35| Custom Instances | ky.create(), ky.extend(), context for hooks | [feature-instances](references/feature-instances.md) |3637### Error Handling3839| Topic | Description | Reference |40|-------|-------------|-----------|41| Error Types | HTTPError, TimeoutError, ForceRetryError, type guards | [feature-errors](references/feature-errors.md) |4243## Advanced4445| Topic | Description | Reference |46|-------|-------------|-----------|47| Progress Tracking | Upload and download progress callbacks | [advanced-progress](references/advanced-progress.md) |48| Customization | Custom JSON parsing/stringifying, custom fetch | [advanced-customization](references/advanced-customization.md) |4950## Best Practices5152| Topic | Description | Reference |53|-------|-------------|-----------|54| Form Data | multipart/form-data, URL-encoded forms, file upload | [best-practices-form-data](references/best-practices-form-data.md) |55| Cancellation | AbortController for request cancellation | [best-practices-cancellation](references/best-practices-cancellation.md) |56| Node.js Features | Proxy support, HTTP/2, environment configuration | [best-practices-nodejs](references/best-practices-nodejs.md) |