git.iko.soy/typeable/servant-reflex
on cps-api help sign in
47 lines 1.8 kB history raw
10.3.3
2-----
4Explicitly escape reserved characters from path pieces and query parameters
70.3.2
8-----
10- **Addition of 'Servant.Reflex.Common.Req.ClientOpts'** which
11allows the users to apply a final adjustment to Requests before
12thery are sent, such as setting the 'withCredentials' flag
13or print the Request to the console for debugging
14[PR #47](https://github.com/imalsogreg/servant-reflex/pull/47)
160.3
17---
19- **Addition of the 'Servant.Reflex.Multi' module** which allows the user
20to choose some '(Applicative f, Traversable f) => f' for collecting
21endpoint parameters. The traversable instance is used for passing
22multiple 'XhrRequest's in response to a single event trigger. The
23Applicative instance is used to combine parameters. For example,
24'Capture "id" Name :> QueryParam "greeting" Text :> Get '[JSON] Text'
25will generate a client function:
26`Dynamic t (f Name) -> Dynamic t (f greeting) -> Event t tag ->
27 m (Event t (f (ReqResult tag Text)))`
28Calling that function with 'f' chosen to be list ('[]'), this call
29`clientFun
30(constDyn ["Greg", "Bernie"])
31(constDyn ["Greetings", "Hey"])
32trigger`
33would produce four XhrRequests per 'trigger' event, one for each
34combination of possible parameters, and one response event
35would carry a list of the four responses.
36A 'zip-wise' combination of the parameters can be chosen with
37a different applicative wrapper: 'ZipList'
39- **Event tags**. A new type parameter lets users choose a payload
40value to attach to outgoing requests at the point of triggering,
41and which is embedded in the response, allowing individual
42request-response pairs to be followed. The response's tag has been
43added to each constructor `ReqResult tag a` type.
45- **Improved Unicode support** Thanks to Schell Scivally
46(https://github.com/schell) for identifying and fixing a UTF-8
47encoding bug!