Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
c

FormAction

class FormAction

Encoded 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

method

the HTML form method

href

the encoded action URL rendered in the action attribute

Defined by scalive.FormAction. View source (scalive/api/src/scalive/forms/FormAction.scala:20-25)

Values2

href

val href: String

Defined by scalive.FormAction.href. View source (scalive/api/src/scalive/forms/FormAction.scala:24-24)

method

val method: FormAction.Method

Defined by scalive.FormAction.method. View source (scalive/api/src/scalive/forms/FormAction.scala:22-22)