krisajenkins/elm-exts/11.0.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Http

Extensions to the main Http library.

promoteError : RawError -> Error

Convert an Http.RawError into an Error, using the same rules Http uses internally.

put : Decoder value -> String -> Body -> Task Error value

Send a simple PUT request.

postContent : String -> Decoder value -> String -> Body -> Task Error value

Send a POST request with the given content-type.

postForm : Decoder value -> String -> Body -> Task Error value

Send a POST request with appropriate headers form-encoding.

postJson : Decoder value -> String -> Body -> Task Error value

Send a POST request with appropriate headers form-encoding.