Module Web.Flash
val find_alert : Rock.Request.t -> string option
find_alert request
returns the alert stored in the flash storage of the currentrequest
.Make sure that the flash middleware is installed.
val set_alert : string -> Rock.Response.t -> Rock.Response.t
set_alert alert response
returns a response with analert
message associated to it. Usealert
to tell the user that something went wrong.Make sure that the flash middleware is installed.
val find_notice : Rock.Request.t -> string option
find_notice request
returns the notice stored in the flash storage of the currentrequest
.Make sure that the flash middleware is installed.
val set_notice : string -> Rock.Response.t -> Rock.Response.t
set_notice notice response
returns aresponse
with anotice
message associated to it. Usenotice
to tell the user that something happened (successfully).Make sure that the flash middleware is installed.