(self, arguments=None, debug=False, auth=True, is_gunicorn=True)
| 217 | |
| 218 | class Router(object): |
| 219 | def __init__(self, arguments=None, debug=False, auth=True, is_gunicorn=True): |
| 220 | self.debug = debug |
| 221 | self.auth = auth |
| 222 | self.is_gunicorn = is_gunicorn |
| 223 | |
| 224 | self.arguments = arguments or {} |
| 225 | |
| 226 | self.spec = {} |
| 227 | self.spec_resolver = None |
| 228 | self.routes = routes.Mapper() |
| 229 | |
| 230 | def add_spec(self, spec, transforms): |
| 231 | info = spec.get("info", {}) |