Skip to content

Invert set_pre_routing_handler return value semantics #839

Closed
@ghost

Description

Currently, I feel like Sever::set_pre_routing_handler's return value is inverted, especially when compared to how Server::Get and such operate.
true regularly means to continue the process, while false means to cancel it, but set_pre_routing_handler does the opposite; true cancels the process, false continues on to the "normal" handler.

Technicially, this would be a breaking change, but since it's been here for only 15 days, maybe it wouldn't be too late?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions