Skip to content

Investigate Context#redirect method #2514

@david-wg2

Description

@david-wg2

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 }
        }
    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions