Rerouted (retagged, needs approval). The tag now points at a different commit than when this version was published. The Lamdera package server serves a copy recovered from https://github.com/jinjor/elm-req.
What we checked: Tag 1.1.0 is still on github.com/jinjor/elm-req; its commit dddb0d30ed61 is from 2018-12-01 18:17 UTC, after the version was published (2018-12-01 17:33 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one and nothing else confirms its contents.
We could not verify this copy against what was published, so the Lamdera compiler asks before using it (y/n). Without a terminal, as in CI, it stops with an error unless approved:
lamdera make --auto-approve-package-rerouting approves rerouted versions for that run,LAMDERA_AUTO_APPROVE_PACKAGE_REROUTING=1 does the same for every run in that environment,LAMDERA_CACHE=off skips the Lamdera package server altogether: packages come from package.elm-lang.org and GitHub only, as with elm, and a rerouted version then fails to download.Details · package.elm-lang.org's zip: https://github.com/jinjor/elm-req/zipball/1.1.0/
Body
Part
Similar to Http.Error but have more informarion
Arbitrary method
GET
POST
PUT
PATCH
DELETE
Add text with mime type.
Add JSON for POST etc.
Add file to upload
Add bytes with mime type.
Add multipart body.
String part (key and value)
Add header
Add timeout
Allow cookies from other domains.
Create a task to parse string body.
Create a task to parse bytes body.
Ignore the result.
Create a task with existing Http.Resolver.
Make a resolver function that returns Http.Error.
getUserSimple : String -> Task Http.Error User
getUserSimple userName =
Req.get ("https://api.github.com/users/" ++ userName)
|> Req.stringTask (Req.simplyResolveJson userDecoder)Make a resolver function that returns Req.Error.
getUserSimple : String -> Task Http.Error User
getUserSimple userName =
Req.get ("https://api.github.com/users/" ++ userName)
|> Req.stringTask
(Req.resolveJson
{ decoder = userDecoder
, errorDecoder = errorDecoder
}
)
- First decoder is used for good body
- First decoder is used for bad body
- Decoding errors of both go to BadBodyTrack progress of responses with string body.
Track progress of responses with bytes body.
Track something but ignore the result.
Make a traking Cmd using existing Http.Expect.
Request