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.beta2.tbz
sha256=a16ff3dba7675d237d59188b032052b383ad9e367eb7c570c4e6e78b978b98e5
sha512=ad553f15f33f9f2427b691713f630476fd1f15b4cb61944a401cfb35c29dd3d1d3760b02dd211bddd39b6cf6ccc8ea5d9f88eefc3776611e2a7020242a16b9a9
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