ITADN

Why the method `json()` need `ClientResponse` to be mutable?

#731Closedemmettlu 创建于 2026-01-30
E
emmettlucommented
```rust let mut response = client .post(url) .header(HEADER_BINANCE_API_KEY, binance_api_key) .send() .await .unwrap(); response.json().await.unwrap() ``` Why the method `json()` need `ClientResponse` to be mutable? I dont think it must be so.
关闭于 2026-01-31 8 条评论