package eliom

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ext.Low_levelSource

Functions to access table data. Prefer using Eliom references.

Sourceval get_volatile_data : state:([< `Session_group | `Session | `Client_process ], [< `Data ]) state -> table:'a volatile_table -> 'a

Raises Not_found if no data in the table for the cookie.

Sourceval get_persistent_data : state:([< `Session_group | `Session | `Client_process ], [< `Pers ]) state -> table:'a persistent_table -> 'a Lwt.t

Fails with lwt exception Not_found if no data in the table for the cookie.

Sourceval set_volatile_data : state:([< `Session_group | `Session | `Client_process ], [< `Data ]) state -> table:'a volatile_table -> 'a -> unit
Sourceval set_persistent_data : state:([< `Session_group | `Session | `Client_process ], [< `Pers ]) state -> table:'a persistent_table -> 'a -> unit Lwt.t

Fails with lwt exception Not_found if no data in the table for the cookie.

Sourceval remove_volatile_data : state:([< `Session_group | `Session | `Client_process ], [< `Data ]) state -> table:'a volatile_table -> unit
Sourceval remove_persistent_data : state:([< `Session_group | `Session | `Client_process ], [< `Pers ]) state -> table:'a persistent_table -> unit Lwt.t
OCaml

Innovation. Community. Security.