Documentation Index
Fetch the complete documentation index at: https://docs.x402x.ai/llms.txt
Use this file to discover all available pages before exploring further.
行为
- 200:直接返回
- 402:自动签名并重试,返回最终响应
- 其他错误:透传原始响应
返回
- 与原生
fetch一致,返回Response对象
重试流程说明
- 首次请求 → 若返回 402(含
accepts) - 根据选择器/默认策略挑选
PaymentRequirements - 生成并签名
PaymentPayload(匹配requirements) - 附上
X-Payment头自动重试 - 返回最终响应(200/402/其他)