Code sample:
Error
afterAfter("/hello", (request, response) -> response.header("finally", "executed even if exception is throw"));
afterAfter((request, response) -> response.header("finally", "executed after any route even if exception is throw"));
Right
after("/hello", (request, response) -> response.header("finally", "executed even if exception is throw"));
after((request, response) -> response.header("finally", "executed after any route even if exception is throw"));
Code sample: Error afterAfter("/hello", (request, response) -> response.header("finally", "executed even if exception is throw")); afterAfter((request, response) -> response.header("finally", "executed after any route even if exception is throw"));
Right after("/hello", (request, response) -> response.header("finally", "executed even if exception is throw")); after((request, response) -> response.header("finally", "executed after any route even if exception is throw"));