package sihl-web

  1. Overview
  2. Docs

Module Sihl_web.Form_parserSource

Sourceval log_src : Logs.src
Sourcemodule Logs : Logs.LOG
Sourcetype body = (string * string list) list
Sourceval body_of_sexp : Sexplib0.Sexp.t -> body
Sourceval sexp_of_body : body -> Sexplib0.Sexp.t
Sourceexception Parsed_body_not_found
Sourceval key : body Opium.Context.key
Sourceval find_all : Opium.Request.t -> body
Sourceval find : String.t -> Opium.Request.t -> string option
Sourceval consume : Opium.Request.t -> String.t -> Opium.Request.t * string option

consume req key returns the value of the parsed body for the key key and a request with an updated context where the parsed value is missing the key key. The value is returned and removed from the context, it is consumed. *

Sourceval m : unit -> Rock.Middleware.t