package ppx_driver

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

get cookies name pattern look for a cookie named name and parse it using pattern.

val add_handler : (t -> Base.Unit.t) -> Base.Unit.t

Register a callback that is called before a rewriting. The handler is expected to lookup some cookies and set some environment variables.

This API is a temporary hack to allow to migrate from add_arg to the use of cookie, until the ppx_driver/ppx_core has been upgraded to pass cookies through.

Shorthand for: add_handler (fun t -> f (get t name pattern))

OCaml

Innovation. Community. Security.