package ocsigenserver

  1. Overview
  2. Docs
A full-featured and extensible Web server

Install

Dune Dependency

Authors

Maintainers

Sources

6.0.0.tar.gz
md5=001e22ec2da3ab08840f934a8f005859
sha512=59f36fdf0a640117aa562d1d9ef96b7146843d9b72d71d01366640521405550074e03267fb388c5e685542781fc4bce763818a36cf05c0e033fae5e51c2f1496

doc/ocsigenserver.cookies/Ocsigen_cookie_map/index.html

Module Ocsigen_cookie_mapSource

This type of maps is used to store cookie values for each path. The key has type Url.path option: it is for the path (default: root of the site).

Sourcemodule Map_inner : Map.S with type key := string

Type used for cookies to set. The float option is the timestamp for the expiration date. The string is the value. If the bool is true and the protocol is https, the cookie will be secure (will ask the browser to send it only through secure connections).

Sourceval empty : t
Sourceval add : path:Ocsigen_lib_base.Url_base.path -> string -> cookie -> t -> t

add ~path c v m adds the cookie c to m.

If the cookie is already bound, the previous binding disappear.

Sourceval add_multi : t -> t -> t

add_multi new old adds the cookies from new to old. If cookies are already bound in oldcookies, the previous binding disappear.

Sourceval remove : path:Ocsigen_lib_base.Url_base.path -> string -> t -> t

remove c cookie_table removes the cookie c from m.

Warning: it is not equivalent to add ... OUnset ...).

Sourcemodule Poly : sig ... end

Polymorphic versions of add and remove to use when we don't need to OUnset (client-side)

OCaml

Innovation. Community. Security.