You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@let-def Precisely, no. I want the concrete implementation of the API to be able to introduce new keys.
cohttp would introduce meth/hash/headers
an SPA framework would only handle cookies/hash
a middleware API would probably introduce some special purpose keys to access the state of other middleware (for instance, auth).
You could track it all via typing + polyvar, but I feel a more lightweight approach does not loose so much safety, and is much nicer to use, and we don't really need extensible function, we can just have:
val match : 'a t -> ('a key -> 'a option) -> Url.t -> 'a
New WIP API:
The text was updated successfully, but these errors were encountered: