mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Merge pull request #979 from markshannon/python-falcon
Python: Add support for falcon web API framework.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
from falcon.api import API
|
||||
from falcon.request import Request
|
||||
from falcon.response import Response
|
||||
14
python/ql/test/query-tests/Security/lib/falcon/api.py
Normal file
14
python/ql/test/query-tests/Security/lib/falcon/api.py
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
"""Falcon API class."""
|
||||
|
||||
class API(object):
|
||||
|
||||
def add_route(self, uri_template, resource, **kwargs):
|
||||
pass
|
||||
|
||||
def add_sink(self, sink, prefix=r'/'):
|
||||
pass
|
||||
|
||||
def add_error_handler(self, exception, handler=None):
|
||||
pass
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
class Request(object):
|
||||
pass
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
|
||||
class Response(object):
|
||||
pass
|
||||
Reference in New Issue
Block a user