Skip to main content

RouteGroup

Routes under a shared path prefix and middleware chain, from :meth:HttpServer.group. The same registrars as the server, plus :meth:group for a nested group. Register before the server listens.

__init__​

__init__(self, bound: '_core_http.RouteGroup') -> 'None'

Initialize self. See help(type(self)) for accurate signature.

group​

group(self, prefix: 'str') -> 'RouteGroup'

group(prefix) -> RouteGroup

A nested group; prefix and middleware compose with this group's.