Annotation Interface RequestBody


@Target(PARAMETER) @Retention(SOURCE) public @interface RequestBody
Marks a method parameter as the deserialized request body. The incoming payload is converted to the parameter's declared type before the Function-annotated method is invoked. At most one parameter per method may carry this annotation.

Usage:


 public MyResponse handle(@RequestBody MyRequest body) { ... }
 
See Also: