flink playground gives a demo as below:
public final class GreeterAppServer {
public static void main(String[] args) {
final StatefulFunctions functions = new StatefulFunctions();
functions.withStatefulFunction(UserFn.SPEC);
functions.withStatefulFunction(GreetingsFn.SPEC);
final RequestReplyHandler requestReplyHandler = functions.requestReplyHandler();
final Undertow httpServer =
Undertow.builder()
.addHttpListener(1108, "0.0.0.0")
.setHandler(new UndertowHttpHandler(requestReplyHandler))
.build();
httpServer.start();
}
how to access the function by a http request? post?get?