Annotation Interface Post


@Target(METHOD) @Retention(RUNTIME) public @interface Post
Annotation used to mark methods to be used for responding to post requests from the client.
 
 	@Post("/users")
 	public static void users(BlazingResponse response) {
 		...
 	}
 
 
The above snipped declares a method and marks it as the respondent for post request made to the the path `/users`. The default path for a Post is `/`, which represent "home" or localhost.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      "/"