krisajenkins/elm-exts/25.5.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Http

Extensions to the Http library.

handleError : Task RawError Response -> Task Error Response

Lift a raw Http response into a Task Error Response, 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.

cgiParameters : List ( String, String ) -> String

Encode a CGI parameter list.