Skip to content

Add "member" and "method" to default types of the HTTP router #3

Description

@SanderMertens

Like with structs / classes, it would be convenient if the HTTP router specifies a default type and default procedure type, so that instead of this:

httprouter/Router MyRouter:/
    int16 construct() method
    member m: int32
    GET home: "/"

a user can do:

httprouter/Router MyRouter:/
    int16 construct()
    m: int32
    GET home: "/"

This can be achieved by adding defaultType=member and defaultProcedureType=method to the Router type in the httprouter.cx file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions