servant-elm-0.3.0.1: test/elm-sources/getBooksByTitleSource.elm
module GetBooksByTitleSource exposing (..)
import Http
getBooksByTitle : String -> Http.Request (Book)
getBooksByTitle capture_title =
Http.request
{ method =
"GET"
, headers =
[]
, url =
String.join "/"
[ ""
, "books"
, capture_title |> Http.encodeUri
]
, body =
Http.emptyBody
, expect =
Http.expectJson decodeBook
, timeout =
Nothing
, withCredentials =
False
}