package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.20210120.tbz
md5=47338eaae436aba40abd4d194ee40054
sha256=499b050b73643f6ad7349a41485539d4166d149a07fba59cb6841f508c0297f8
sha512=6a5bf77061d390ddb331ed3d5891a5c56502be91f0eff6846202f658ebfa97ef57695d7a192cbdad4c7b8835f5665df3ea4375daf46930334ebbd9a07f00feca

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.