owtf.api package¶
Subpackages¶
- owtf.api.handlers package
- Submodules
- owtf.api.handlers.auth module
- owtf.api.handlers.base module
- owtf.api.handlers.config module
- owtf.api.handlers.health module
- owtf.api.handlers.index module
- owtf.api.handlers.jwtauth module
- owtf.api.handlers.misc module
- owtf.api.handlers.plugin module
- owtf.api.handlers.report module
- owtf.api.handlers.session module
- owtf.api.handlers.targets module
- owtf.api.handlers.transactions module
- owtf.api.handlers.work module
- Module contents
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.
-