Falcon v2.0.0 Documentationdef authorize(req, resp, resource, params): # Check authentication/authorization # ... req.context.role = 'root' (continues on next page) 5.1. User Guide 47 Falcon Documentation, Release 2.0.0 (continued or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. Why does req.stream.read() hang for certain requests? This behavior request-specific data is now to set attributes directly on the context object, for example: req.context.role = 'trial' req.context.user = 'guest' Type object context_type Class variable that determines the0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v2.0.0 Documentationauthorize(req, resp, resource, params): # Check authentication/authorization # ... req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # ... @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. Why does req.stream.read() hang for certain requests? This behavior request-specific data is now to set attributes directly on the context object, for example: req.context.role = 'trial' req.context.user = 'guest' object [https://docs.python.org/3/library/functions.html#object]0 码力 | 265 页 | 299.57 KB | 1 年前3
Falcon v3.0.0-b2 Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # -- snip -- @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. Why does req.stream.read() hang for certain requests? This behavior to configure your application, such as with a create_api() function or a module-level script. This role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0 Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # -- snip -- @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. Why does req.stream.read() hang for certain requests? This behavior to configure your application, such as with a create_app() function or a module-level script. The role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # -- snip -- @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. Why does req.stream.read() hang for certain requests? This behavior to configure your application, such as with a create_app() function or a module-level script. The role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b1 Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 (continues on next page) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. Why does req.stream.read() hang for certain requests? This behavior to configure your application, such as with a create_api() function or a module-level script. This role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.1.1-b3 Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # -- snip -- @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. 90 Chapter 5. Documentation Falcon Documentation, Release 3.1.1b3 Why to configure your application, such as with a create_app() function or a module-level script. The role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # -- snip -- @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. 90 Chapter 5. Documentation Falcon Documentation, Release 3.1.1b1 Why to configure your application, such as with a create_app() function or a module-level script. The role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # -- snip -- @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. 90 Chapter 5. Documentation Falcon Documentation, Release 3.1.1 Why to configure your application, such as with a create_app() function or a module-level script. The role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationauthorize(req, resp, resource, params): # TODO: Check authentication/authorization # -- snip -- req.context.role = 'root' req.context.scopes = ('storage', 'things') req.context.uid = 0 # -- snip -- @falcon.before(authorize) or hooks could then use this information to authorize the request, taking into account the user’s role and the requested resource. 90 Chapter 5. Documentation Falcon Documentation, Release 3.1.0 Why to configure your application, such as with a create_app() function or a module-level script. The role of this function or script is to supply an instance of falcon.App, which implements the standard WSGI0 码力 | 362 页 | 1.29 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













