【文件属性】:
文件名称:http:在Elm中发出HTTP请求
文件大小:14KB
文件格式:ZIP
更新时间:2021-02-03 19:50:40
http elm HTTPElm
HTTP
在Elm中发出HTTP请求。 与服务器对话。
我强烈建议您阅读以了解如何使用此软件包!
例子
您可能会创建以下命令来使用此软件包发送HTTP请求:
import Http
import Json.Decode as D
type Msg
= GotBook ( Result Http . Error String )
| GotItems ( Result Http . Error ( List String ))
getBook : Cmd Msg
getBook =
Http . get
{ url = " https://elm-lang.org/as
【文件预览】:
http-master
----src()
--------Elm()
--------Http.elm(29KB)
----elm.json(457B)
----LICENSE(1KB)
----README.md(1KB)
----.gitignore(9B)