asmcos / requests

A golang HTTP client library. Salute to python requests.
Other
665 stars 90 forks source link

New features: session, curl generator, unit test, examples ... #27

Open ahuigo opened 2 years ago

ahuigo commented 2 years ago

重构并新增features:

  1. 支持session(cookie会话保持)
  2. debug模式支持输出curl
  3. 单元测试(基于examples)
  4. 完整的examples
  5. request 生成器
  6. 支持plain/url-encoded/form-data/json/multiple-file 请求体
  7. 支持http global header
  8. 支持put/patch/delete 等方法
meoww-bot commented 1 year ago

你好,能考虑下实现“关闭 SSL 校验”的功能吗,我自己实现了个,能用,#28 ,但是感觉不是很优雅

ahuigo commented 1 year ago

你好,能考虑下实现“关闭 SSL 校验”的功能吗,我自己实现了个,能用,#28 ,但是感觉不是很优雅

@meoww-bot https://github.com/ahuigo/requests/blob/ee0f4e35be9f71757713a8cda6dabf28305c44cf/examples/ssl_test.go#L20

meoww-bot commented 1 year ago

谢谢,我学习一下