# 取
## 总览
所述[提取API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)通过提供请求和响应的定义提供了用于asyncronously取资源的接口。您会经常发现自己与[FetchEvent中](https://developers.cloudflare.com/workers/reference/apis/fetch-event)包含的请求对象进行[交互](https://developers.cloudflare.com/workers/reference/apis/fetch-event),使用global`fetch`方法发出自己的请求,并构造自己的响应。
\**注意:Fetch API仅[在Request Context](https://developers.cloudflare.com/workers/about/tips/request-context)内部可用。*
## Global 全局
该`fetch`方法在ServiceWorkerGlobalScope上实现,并且与[MDN提供](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch)的文档匹配[](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch)
## 标头
Headers类与[MDN提供](https://developer.mozilla.org/en-US/docs/Web/API/Headers)的文档匹配。如果您希望标头中包含Unicode值,则在将标头值添加到标头对象之前,URL或Base64会对标头值进行编码。
#### Cloudflare特定标头
`CF-Connecting-IP`:客户端IP
- 关于本翻译文档
- 快速开始
- 模版库
- 讲解
- Workers页面
- 从0开始
- 从已有页面开始
- 从已有Worder开始
- 工具
- Cli工具 wrangler
- 安装
- 指令
- 配置
- 环境
- Webpack
- 密钥
- KV
- 网站
- Playground
- ServerLess插件
- Terraform
- REST API
- Making Requests
- Scripts
- Bindings
- Routes
- Integrations
- 相关
- 工作原理
- 安全
- 使用缓存
- 价格
- Routes
- Limits
- 提示
- 调试技巧
- 调试header
- FetchEvent生命周期
- 请求上下文
- 请求sign
- 参考
- runtime API
- Web Standards
- fetch
- fetchEvent
- Response
- Request
- KV
- Environment Variables
- Streams
- Encoding
- Web Crypto
- Cache API
- HTMLRewriter
- Workers KV
- Use cases
- Namespaces
