dillonkearns / elm-pages / Pages.Fetcher


type Fetcher decoded
    = Fetcher (FetcherInfo decoded)


type alias FetcherInfo decoded =
{ decoder : Result Http.Error Bytes -> decoded
, fields : List ( String
, String )
, headers : List ( String
, String )
, url : Maybe String 
}

submit : Bytes.Decode.Decoder decoded -> { fields : List ( String, String ), headers : List ( String, String ) } -> Fetcher (Result Http.Error decoded)

map : (a -> b) -> Fetcher a -> Fetcher b