## 批量接口调用范例
```mermaid
flowchart TD
subgraph 真实场景
S1["爬虫
1000个页面"]
S2["批量下单
500个订单"]
S3["数据同步
5个系统"]
S4["压测
自己服务器"]
end
subgraph Paste方案
P1["new_http_request × N"]
P2["async_concurrency 一发"]
P3["统一处理响应"]
end
S1 --> P1 --> P2 --> P3
S2 --> P1 --> P2 --> P3
S3 --> P1 --> P2 --> P3
S4 --> P1 --> P2 --> P3
```
### 支持的能力
- GET / POST / JSON / Form / 文件上传
- 自动随机 User-Agent
- 自动提取 Cookie
- 批量并发控制
- 自动重试
- 统一响应/错误处理
### 代码量
- Java: 200-300 行
- Paste: **20 行**
### 示例
```python
# 准备1000个请求
for i in range(1000):
req = new_http_request(url, method="POST", body={"id": i})
await queue.put(req)
# 批量发出
await async_concurrency(queue, con_count=50)