Extract value.

This commit is contained in:
Dillon Kearns 2022-03-19 13:22:40 -07:00
parent c72dfc8010
commit 339b3c3387

View File

@ -123,6 +123,10 @@ start initialPath dataSourceSimulator =
|> String.join ";"
)
requestTime : ( String, Encode.Value )
requestTime =
( "requestTime", Encode.int 0 )
rawUrl : ( String, Encode.Value )
rawUrl =
( "rawUrl"
@ -138,7 +142,7 @@ start initialPath dataSourceSimulator =
RequestsAndPending.Response Nothing
(RequestsAndPending.JsonBody
(Encode.object
[ ( "requestTime", Encode.int 0 )
[ requestTime
, ( "headers"
, Encode.dict identity
Encode.string
@ -162,7 +166,7 @@ start initialPath dataSourceSimulator =
RequestsAndPending.Response Nothing
(RequestsAndPending.JsonBody
(Encode.object
[ ( "requestTime", Encode.int 0 )
[ requestTime
, ( "headers"
, Encode.dict identity
Encode.string