package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.tar.gz
sha256=28f4c68127579b86c5f50e01e444e8c51f0543bc5472c2dcac28993bc88aa756
md5=0317493fa5cc1054a882ceca59ce5992

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

Module Httpev.ArgsSource

Parameters

module T : sig ... end

Signature

Sourceexception Bad of string
Sourceval req : request
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.