FormAction
class FormActionEncoded action and browser method for an ordinary HTML form.
Prefer from or fromEither: route-derived actions accept only GET and POST, encode typed path parameters, and mark POST forms for Scalive CSRF-token injection. unsafe is an explicit escape hatch for already encoded or external targets and never requests CSRF protection, even for POST.
A checked action is input to http; it does not by itself authenticate, authorize, or validate the eventual request.
Parameters
methodthe HTML form method
hrefthe encoded action URL rendered in the
actionattribute
Defined by scalive.FormAction. View source (scalive/api/src/scalive/forms/FormAction.scala:20-25)
Values2
href
val href: StringDefined by scalive.FormAction.href. View source (scalive/api/src/scalive/forms/FormAction.scala:24-24)
method
val method: FormAction.MethodDefined by scalive.FormAction.method. View source (scalive/api/src/scalive/forms/FormAction.scala:22-22)