Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class Htmx

  1. Object
  2. Htmx
Helpers for the htmx wire protocol.

Methods

public static boolean isRequest(HttpServer.Request request)
public static HttpServer.Response redirect(String location)
public static HttpServer.Response refresh()
public static HttpServer.Response trigger(HttpServer.Response response, String event)

Inherited methods

Method details

isRequest

public static boolean isRequest(HttpServer.Request request)

redirect

public static HttpServer.Response redirect(String location)

refresh

public static HttpServer.Response refresh()

trigger

public static HttpServer.Response trigger(HttpServer.Response response, String event)