servant-elm-0.3.0.0: test/elm-sources/putNothingSource.elm
module PutNothingSource exposing (..)
import Http
putNothing : Http.Request (())
putNothing =
Http.request
{ method =
"PUT"
, headers =
[]
, url =
String.join "/"
[ ""
, "nothing"
]
, body =
Http.emptyBody
, expect =
Http.expectStringResponse
(\{ body } ->
if String.isEmpty body then
Ok ()
else
Err "Expected the response body to be empty"
)
, timeout =
Nothing
, withCredentials =
False
}