-
-
Notifications
You must be signed in to change notification settings - Fork 637
Closed
Description
Investigate Context#redirect method and relation with before/beforeMatched.
Consider especially the usage of skipIfExceptionOccurred, which doesn't immediately make sense from reading the code.
override fun redirect(location: String, status: HttpStatus) {
header(Header.LOCATION, location).status(status).result("Redirected")
if (endpoint().method == HandlerType.BEFORE) {
tasks.removeIf { it.skipIfExceptionOccurred }
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels