package ez_api

  1. Overview
  2. Docs

doc/src/ez_api.server_session/ezCookieServer.ml.html

Source file ezCookieServer.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 1 "src/session/ezCookieServer.dummy.ml"
(**************************************************************************)
(*                                                                        *)
(*                 Copyright 2018-2023 OCamlPro                           *)
(*                                                                        *)
(*  All rights reserved. This file is distributed under the terms of the  *)
(*  GNU Lesser General Public License version 2.1, with the special       *)
(*  exception on linking described in the file LICENSE.                   *)
(*                                                                        *)
(**************************************************************************)

open EzAPIServerUtils

let get ( _req : Req.t ) =
  Format.eprintf "Dummy implementation of cookie server, to install:\n`opam install cohttp`@.";
  StringMap.empty

let set ?secure:_ ?http_only:_ ?expiration:_ ~name ~value () =
  Format.eprintf "Dummy implementation of cookie server, to install:\n`opam install cohttp`@.";
  (name, value)

let clear ~name () = (name, "")
OCaml

Innovation. Community. Security.