Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试实现一个PUT将一些位传输到 Web 服务的请求:
PUT
extern crate reqwest; fn put(buf: &[u8]) { let v = Vec::from(buf); let body = ::reqwest::Body::from(v); // execute the request }
在构造Body?
Body
我可能会发送大缓冲区,我希望避免不必要的副本(即使与网络 IO 相比它们可以忽略不计)