Skip to content

Commit

Permalink
Refactor HTTP-related functions and update URL endpoints for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
decioferreira committed Feb 28, 2025
1 parent fbfef5a commit a3d2d99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Builder/Http.elm
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ getArchive _ url _ _ onSuccess =
case response of
Http.GoodStatus_ _ body ->
let
shaAndArchiveResult : Result Decode.Error ( String, List Zip.Entry )
shaAndArchiveResult =
Decode.decodeString
(Decode.map2 Tuple.pair
Expand Down
2 changes: 1 addition & 1 deletion src/Compiler/Json/Encode.elm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import Compiler.Data.OneOrMore exposing (OneOrMore(..))
import Data.Map as Dict exposing (Dict)
import Data.Set as EverySet exposing (EverySet)
import Json.Encode as Encode
import System.IO as IO exposing (IO(..))
import System.IO as IO exposing (IO)



Expand Down
5 changes: 5 additions & 0 deletions src/System/IO.elm
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ module System.IO exposing
@docs RealWorldMVar, MVarSubscriber
# Internal helpers
@docs writeString
-}

import Array exposing (Array)
Expand Down
4 changes: 2 additions & 2 deletions src/Utils/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ binaryEncodeFile encoder path value =
(Http.task
{ method = "POST"
, headers = []
, url = "binaryEncodeFile"
, url = "write"
, body =
Http.jsonBody
(Encode.object
Expand All @@ -1565,7 +1565,7 @@ binaryEncodeFile encoder path value =
Ok (IO.pure ())

_ ->
crash "binaryEncodeFile"
crash "write"
)
, timeout = Nothing
}
Expand Down

0 comments on commit a3d2d99

Please sign in to comment.