This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@At("/person/:name") @Async | |
public class PersonService { | |
@Before | |
void pre(Request request, @Named("name") String name) { | |
System.out.println("headers were: " + request.headers()); | |
// We can either return a "Reply" here, or do nothing to continue processing | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@At("/person") @Async | |
public class PersonService { | |
@Before | |
void pre(Request request) { | |
System.out.println("headers were: " + request.headers()); | |
} | |
/** | |
* Callback for request body. Can return a continuation, which will |