package opam-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type dl_tool_kind = [
  1. | `Curl
  2. | `Default
]

Toggles parsing of the tool's output to detect errors (curl returns 0 on a 404)

type t = {
  1. download_tool : (OpamTypes.arg list * dl_tool_kind) Lazy.t;
  2. retries : int;
  3. force_checksums : bool option;
}
type 'a options_fun = ?download_tool:(OpamTypes.arg list * dl_tool_kind) Lazy.t -> ?retries:int -> ?force_checksums:bool option -> unit -> 'a
val default : t
val set : t -> t options_fun
val setk : (t -> 'a) -> t -> 'a options_fun
val r : t ref
val update : ?noop:unit -> unit options_fun
val init : ?noop:unit -> unit options_fun

Initialises download tool and parameters

OCaml

Innovation. Community. Security.