package mechaml

  1. Overview
  2. Docs

Module Cookiejar.CookieSource

Representation of a cookie

Sourcetype t
Sourcetype expiration = [
  1. | `Session
  2. | `Max_age of int64
]
Sourceval name : t -> string
Sourceval value : t -> string
Sourceval expiration : t -> expiration
Sourceval domain : t -> string
Sourceval path : t -> string
Sourceval secure : t -> bool
Sourceval match_uri : Uri.t -> t -> bool

Given an uri and a cookie, return true if the cookie's domain and path match the uri's one.

Sourceval make : ?expiration:expiration -> ?path:string -> ?secure:bool -> domain:string -> string -> string -> t

Create a cookie

OCaml

Innovation. Community. Security.