- get
Append route that matches HTTP GET method:
get(()
->"hello"
);
- use
Import content from provide application (routes, parsers/renderers, start/stop
callbacks, ... etc.).
- assets
- map
Apply the mapper to all the functional routes.
mapper((Integer v) -> v * 2);}
A call to /four outp
- decode
Decode a path by delegating to URLDecoder#decode(String,String).
- err
Setup a route error handler. The error handler will be executed if current
status code matches the o
- after
AFTER
Allows for customized response before sending it. It will be invoked at the time
a response ne
- before
BEFORE
Allows for customized handler execution chains. It will be invoked before the
actual handler.
- complete
COMPLETE
Allows for log and cleanup a request. It will be invoked after we send a
response.
complet
- delete
Append route that supports HTTP DELETE method:
delete(()
->return Results.noContent();
);
Th
- patch
Append route that supports HTTP PATCH method:
patch(()
-> {
return Results.ok();
});
This i
- post
Append route that supports HTTP POST method:
post(()
->"hello"
);