Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- postForms :: (IsBlob blob, HasJSContext (Performable m), MonadJSM (Performable m), PerformEvent t m, TriggerEvent t m, Traversable f) => Text -> Event t (f (Map Text (FormValue blob))) -> m (Event t (f XhrResponse))
- data FormValue blob
- = FormValue_Text Text
- | FormValue_File blob (Maybe Text)
- fileToFormValue :: MonadJSM m => File -> m (FormValue File)
Documentation
:: (IsBlob blob, HasJSContext (Performable m), MonadJSM (Performable m), PerformEvent t m, TriggerEvent t m, Traversable f) | |
=> Text | The target url |
-> Event t (f (Map Text (FormValue blob))) | Maps of text keys and values that will be sent as FormData |
-> m (Event t (f XhrResponse)) |
Performs a POST request with the provided FormData payload
A FormData value may be a blob/file or a string. The file can optionally be provided with filename.
FormValue_Text Text | |
FormValue_File blob (Maybe Text) |