package ldp

  1. Overview
  2. Docs

Creates a fresh cookie store.

Parameters

Signature

val clear : unit -> unit

clear () removes all cookies from the store.

val remove_expired_cookies : unit -> unit

remove_expired_cookies removes from the store the cookies whose expiration date is reached (using Unix.time).

A a cookie for the given IRI and header.

val cookies_by_iri : Iri.t -> Cohttp.Cookie.cookie list

Returns cookies associated to the given IRI.