package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.20210517.tbz
md5=00995ebead339d6ec1ba7859c3fc3a58
sha256=5ad39c7fa1a966a2f0a7f6dbb7e82c787439c73482f5f44b3c9fb54b040d36eb
sha512=8dd3f7d4aaabae9aa9ede13edee2b22214c0d2e2780bb08b2ca8ed588d74fc6d9b1908bb31dfee49c949c7cc425fb98897b8e0f11280070ebd99b965908ea133

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.