owtf.api package

Submodules

owtf.api.main module

owtf.api.reporter module

owtf.api.routes module

owtf.api.utils module

owtf.api.utils

class owtf.api.utils.VersionMatches(api_version)[source]

Bases: tornado.routing.Matcher

Matches path by version regex.

match(request)[source]

Matches current instance against the request.

Parameters:request (httputil.HTTPServerRequest) – current HTTP request
Returns:a dict of parameters to be passed to the target handler (for example, handler_kwargs, path_args, path_kwargs can be passed for proper ~.web.RequestHandler instantiation). An empty dict is a valid (and common) return value to indicate a match when the argument-passing features are not used. None must be returned to indicate that there is no match.

Module contents