package vif
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A simple web framework for OCaml 5
Install
dune-project
Dependency
Authors
Maintainers
Sources
vif-0.0.1.beta3.tbz
sha256=4da176d4f20bc5d2dc6f8960ece626c7815f5281680bbf99af3487bbb4419c2c
sha512=e225e6b977f92a243e900b4b6a728ef07b9469e17557c21457fe24e21c06be9bb176bc5f5847df64c702efb8f86538a0dac7bde09d8a68193c348aa3eec62748
doc/vif.core/Vif_core/Route/index.html
Module Vif_core.RouteSource
Top level atoms are specialized for path and query, see documentation.
Extraction.
Extracting atom is just a matter of following the witness. We just need to take care of counting where we are in the matching groups.
Source
val extract_path :
'f 'x 'r. original:string ->
('f, 'x) re_path ->
Re.Group.t ->
('x -> 'r) ->
'f ->
'rSince path is in reversed order, we proceed by continuation.
Query are in the right order, we can proceed in direct style.
Multiple match
Source
type 'socket request = {extract : 'c 'a. [ `CONNECT | `DELETE | `GET | `HEAD | `OPTIONS | `POST | `PUT | `TRACE | `Other of string ] option -> ('c, 'a) Vif_core__.Vif_type.t -> ('socket, 'c, 'a) Vif_core__.Vif_request.t option;
}Source
val match_ :
((Re.re * 'a) Vif_core__.Vif_method.Map.t * (Re.re * 'a)) ->
[ `CONNECT
| `DELETE
| `GET
| `HEAD
| `OPTIONS
| `POST
| `PUT
| `TRACE
| `Other of string ] ->
string ->
(Re.Group.t * 'a) option sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page