pcurl icon indicating copy to clipboard operation
pcurl copied to clipboard

pcurl库设计主要目标

Open guonaihong opened this issue 4 years ago • 7 comments

主要目的使用golang再造一个curl库,为高性能解析curl表达式提供支持(相比call bash方式)

  • 只专注于http相关功能点
  • 使用20%的时间实现80%的功能
  • 剩余20%功能慢慢实现

guonaihong avatar Mar 09 '20 15:03 guonaihong

伪代码如下:

req, err := pcurl.ParseAndRequest(`curl -X POST -d '{"hello":"val")'`)
resp, err := http.DefaultClient.Do(req)

guonaihong avatar Mar 15 '20 01:03 guonaihong

v2ex 看到的,支持一个

snowlyg avatar Apr 20 '20 03:04 snowlyg

@snowlyg 感谢支持。。。

guonaihong avatar Apr 20 '20 05:04 guonaihong

支持,github上有一个curl转go的项目,你可以参考看看,他这个是curl命令直接转成go代码的。https://github.com/mholt/curl-to-go

samy1937 avatar May 16 '20 01:05 samy1937

@samy1937 谢了,我了解下。

guonaihong avatar May 17 '20 08:05 guonaihong

之前在v2上看到这个没想明白有什么用,今天遇到一个需求,要从charles抓包提取某些值,用上了

keepeye avatar Mar 09 '22 04:03 keepeye

可以😊

---原始邮件--- 发件人: "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: @.***>

guonaihong avatar Mar 09 '22 13:03 guonaihong