package devkit

  1. Overview
  2. Docs
Development kit - general purpose library

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.20240429.tbz
sha256=222f8ac131b1d970dab7eeb2714bfd6b9338b88b1082e6e01c136ae19e7eaef4
sha512=c9e6d93e3d21e5530c0f4d5baca51bf1f0a5d19248f8af7678d0665bb5cdf295d7aaaaa3e50eb2e44b8720e55097cc675af4dc8ec45acf9da39feb3eae1405d5

doc/devkit.core/Devkit_core/Httpev/Args/index.html

Module Httpev.ArgsSource

functor version of Param because somebody thought it is good idea

Parameters

module T : sig ... end

Signature

Sourceval req : request
Sourceexception Bad of string
Sourceval get : string -> string option

Get optional parameter.

  • returns

    None if parameter is missing

Sourceval str : ?default:string -> string -> string

Get required parameter.

  • raises Bad

    if parameter is missing and no default provided

Sourceval get_int : string -> int option

Get optional integer parameter

Sourceval int : ?default:int -> string -> int

Get integer parameter.

  • raises Bad

    if parameter is missing and no default provided

Sourceval bool : ?default:bool -> string -> bool

Get boolean parameter.

  • returns

    true when parameter value is "true", false otherwise.

    @raise Bad

    if missing and no default provided.

Sourceval float : ?default:float -> string -> float
Sourceval int64 : ?default:int64 -> string -> int64
Sourceval array : string -> string list
  • parameter name

    array name without brackets e.g. array "x" to extract x from /request?x=1&x=2

OCaml

Innovation. Community. Security.