Go to the first, previous, next, last section, table of contents.


The Cookies module

type cookie = {
  name : string;
  mutable value : string;
  mutable expires : Time.time option;
  mutable domain : string option;
  mutable path : string option;
  mutable secure : bool option;
} 

val mk_cookie :
  name:string ->
  value:string ->
  ?expires:Time.time ->
  ?domain:string -> ?path:string -> ?secure:bool -> unit -> cookie

a cookie cutter function

val cookie_string : cookie -> string

a string with all components for putting in HTTP headers

val cookie_old_string : cookie -> string

a string for putting in Netscape style HTTP headers

val get_cookies : unit -> (string * cookie) list

return a list of all the cookies

Convenience functions

val cookie : string -> cookie

cookie name return a cookie named name or throws a Not_found exception


Go to the first, previous, next, last section, table of contents.