facet classafPillow::PageEvent

sys::Obj
  afPillow::PageEvent : sys::Facet

@Serializable

Place on a method to mark it as a page event.

If the method returns Void or null then the containing page is re-rendered. Otherwise the returned object is treated as a BedSheet response object.

httpMethod

Source

const Str httpMethod := "GET"

The HTTP method the page event should respond to.

Defaults to GET

name

Source

const Str? name

The name of the event. This appears in client URLs.

Defaults to the event method name (minus any on prefix).