req:基于Finch构建的HTTP客户端,专注于可组合性

时间:2021-04-05 05:37:54
【文件属性】:
文件名称:req:基于Finch构建的HTTP客户端,专注于可组合性
文件大小:14KB
文件格式:ZIP
更新时间:2021-04-05 05:37:54
Elixir 要求 一个基于构建的,注重可组合性的HTTP客户端。 这是一个进展中的工作! 特征 通过请求,响应和错误步骤进行扩展 自动身体减压(通过decompress/2步) 自动正文编码和解码(通过encode/1和decode/2步骤) 将参数编码为查询字符串(通过params/2步骤) 基本身份验证(通过auth/2步骤) 跟随重定向(通过follow_redirects/2步骤) 重试错误(通过retry/3步骤) 高级API Req . get! ( " https://api.github.com/repos/elixir-lang/elixir " ).body[ " description " ] # => "Elixir is a dynamic, functional language designed for building scalable and maint
【文件预览】:
req-main
----mix.exs(1KB)
----lib()
--------req()
--------req.ex(15KB)
----.formatter.exs(97B)
----test()
--------req_test.exs(14KB)
--------test_helper.exs(15B)
----README.md(5KB)
----mix.lock(6KB)
----.gitignore(634B)

网友评论