package cohttp

  1. Overview
  2. Docs
An OCaml library for HTTP clients and servers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cohttp-2.5.8.tbz
sha256=2722477d1f5bb09e841debc125c30ff44f1b20cf8894b68cb48f2b6de092d25a
sha512=ce934a24c0e1eaf5dc674927b45277d461a13757d4c165a4a11811f9eb7b11b78b4560792ca430734d4e3a5b8791eee887d4eab2a0e9e30aa4a5864e833dd768

doc/cohttp/Cohttp/Cookie/index.html

Module Cohttp.CookieSource

Functions for the HTTP Cookie and Set-Cookie header fields. Using the Set-Cookie header field, an HTTP server can pass name/value pairs and associated metadata (called cookies) to a user agent. When the user agent makes subsequent requests to the server, the user agent uses the metadata and other information to determine whether to return the name/value pairs in the Cookie header.

Sourcetype expiration = [
  1. | `Session
    (*

    Instructs the user agent to discard the cookie unconditionally when the user agent terminates.

    *)
  2. | `Max_age of int64
    (*

    The value of the Max-Age attribute is delta-seconds, the lifetime of the cookie in seconds, a decimal non-negative integer.

    *)
]

Lifetime of the cookie after which the user agent discards it

Sourceval sexp_of_expiration : expiration -> Sexplib0.Sexp.t
Sourceval expiration_of_sexp : Sexplib0.Sexp.t -> expiration
Sourceval __expiration_of_sexp__ : Sexplib0.Sexp.t -> expiration

A cookie is simply a key/value pair send from the client to the server