pcurl
pcurl copied to clipboard
pcurl库设计主要目标
主要目的使用golang再造一个curl库,为高性能解析curl表达式提供支持(相比call bash方式)
- 只专注于http相关功能点
- 使用20%的时间实现80%的功能
- 剩余20%功能慢慢实现
伪代码如下:
req, err := pcurl.ParseAndRequest(`curl -X POST -d '{"hello":"val")'`)
resp, err := http.DefaultClient.Do(req)
v2ex 看到的,支持一个
@snowlyg 感谢支持。。。
支持,github上有一个curl转go的项目,你可以参考看看,他这个是curl命令直接转成go代码的。https://github.com/mholt/curl-to-go
@samy1937 谢了,我了解下。
之前在v2上看到这个没想明白有什么用,今天遇到一个需求,要从charles抓包提取某些值,用上了
可以😊
---原始邮件--- 发件人: "Xian @.> 发送时间: 2022年3月9日(周三) 中午12:13 收件人: @.>; 抄送: @.@.>; 主题: Re: [antlabs/pcurl] pcurl库设计主要目标 (#1)
之前在v2上看到这个没想明白有什么用,今天遇到一个需求,要从charles抓包提取某些值,用上了
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>