httpbase.routes

Base Class

class httpbase.routes.Route(path: str, method: str, params: set = None)[source]

A route definition. Contains a relative path, the HTTP method to use, a set containing the names of template variables (user_id in /api/users/{user_id}) and a set of usable query parameters.

get_url(baseurl: str, **params)[source]
Parameters:
  • baseurl
  • **params
Raises:

RouteError