0
何か非常に機能しないものを実行し、何らかの応答を処理せずにelmでHTTPリクエストを行いたいです。このような基本的なもの:エルムにこのような何かを行う方法がElmでのリクエストなしのHTTPリクエスト0.18
testView : Html Msg
testView =
div [] [
button [onClick TestAction] [text "Test Action"]
]
update : Msg -> Model -> (Model, Cmd Msg)
update msg model =
case msg of
...
TestAction ->
(model, testActionCmd)
...
import Http
import HttpBuilder exposing (..)
...
testActionCmd : Cmd Msg
testActionCmd =
("http://localhost:4000/fakeurl")
|> get -- this is a side effect; unrelated to the Msg below
Cmd.none -- this is what I want to return
ありますか?