Open supermario opened 4 months ago
When making a Http.bytesBody "application/octet-stream" someBytes call to elm-pages it would be nice to be able to get a Bytes body on the other side. We would then have;
Http.bytesBody "application/octet-stream" someBytes
Bytes
Server.Request.body : Request -> Maybe String Server.Request.bytesBody : Request -> Maybe Bytes Server.Request.jsonBody : Maybe (Result Error value)
So maybe it makes more sense to just be explicit:
Server.Request.stringBody : Request -> Maybe String Server.Request.bytesBody : Request -> Maybe Bytes Server.Request.jsonBody : Maybe (Result Error value)
This would also align to the https://package.elm-lang.org/packages/elm/http/latest/Http#stringBody naming, which is nice I guess!
When making a
Http.bytesBody "application/octet-stream" someBytes
call to elm-pages it would be nice to be able to get aBytes
body on the other side. We would then have;So maybe it makes more sense to just be explicit:
This would also align to the https://package.elm-lang.org/packages/elm/http/latest/Http#stringBody naming, which is nice I guess!