decode url query string
value = "count=4&position[]=captain&admin" |> QueryDecode.split
value |> QueryDecode.entryAt ["count"] QueryDecode.int
value |> QueryDecode.listAt ["position"] QueryDecode.string
value |> QueryDecode.boolAt ["admin"]
List String
decode target : actually this is List String
Value -> Maybe a
decoder : Value -> Maybe a
string : ValueDecoder String
string decoder
int : ValueDecoder Basics.Int
int decoder
entryAt : List String -> ValueDecoder a -> Decoder a
decode entry
listAt : List String -> ValueDecoder a -> Value -> Maybe (List a)
decode list
boolAt : Value -> Decoder Basics.Bool
decode bool
split : String -> Value
query string to Value
"name=John&position=captain" |> QueryDecode.split
-- [ "name=John", "position=captain" ]