alexcrichton / alexcrichton/curl-rust
Feature request: CURLOPT_POSTFIELDS non-copying wrappers
未关闭
- 主要语言
- Rust
- 星标
- 1.1k
- 派生
- 259
- PR 合并指标
- 30 天内没有已合并 PR
描述
It would be handy if curl-rust provided a `send_with_body` wrapper around CURLOPT_POSTFIELDS that took a borrowed byte slice, and a `post_fields_move` that would take ownership of a boxed slice to send later. That way it would be just as convenient to move the POST body as to copy it, when using this crate with ones like `serde_urlencoded` that don't integrate with the `Form` type. (Otherwise I have to add a `Cursor>` field to my Handler implementation and pass all reads through to it.)
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。