package yurt

  1. Overview
  2. Docs

Query contains methods for reading query string parameters

type t = (string, string list) Stdlib.Hashtbl.t
val get : Request.t -> t

Parse the request's query string

val to_json : Request.t -> Ezjsonm.t

Convert query string to JSON

val string : Request.t -> string -> string option

Get string query string parameter

val int : Request.t -> string -> int option

Get int query string parameter

val float : Request.t -> string -> float option

Get float query string parameter

val json : Request.t -> string -> Ezjsonm.value option
OCaml

Innovation. Community. Security.