package sihl-web

  1. Overview
  2. Docs

Module Sihl_web.Middleware_urlencodedSource

Sourceval log_src : Logs.src
Sourcemodule Logs : Logs.LOG
Sourcetype urlencoded = (string * string list) list
Sourceval urlencoded_of_sexp : Sexplib0.Sexp.t -> urlencoded
Sourceval sexp_of_urlencoded : urlencoded -> Sexplib0.Sexp.t
Sourceexception Urlencoded_not_found
Sourceval key : urlencoded Opium.Context.key
Sourceval find_all : Opium.Request.t -> urlencoded
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 urlencoded body for the key key and a request with an update context where the parsed urlencoded is missing the key key. The urlencoded value is returned and removed from the context, it is consumed. *

Sourceval m : unit -> Rock.Middleware.t