Falcon v2.0.0 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP instances where the has_representation property evaluates to False (such as in the case of types that subclass falcon. http_error.NoRepresentation). However a custom serializer will be called regardless of the something goes wrong. All of these classes inherit from HTTPError. Falcon will convert any instance or subclass of HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v3.0.0-b2 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. 5.4. Framework handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. 5.4. Framework handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b1 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon. HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.1.1-b3 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP Alternatively, if the middleware comes from a third-party library, it may be more practical to subclass it: class CORSAwareMiddleware(SomeAuthMiddleware): def process_request(self, req, resp): # NOTE: handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon.HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP Alternatively, if the middleware comes from a third-party library, it may be more practical to subclass it: class CORSAwareMiddleware(SomeAuthMiddleware): def process_request(self, req, resp): # NOTE: handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon.HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP Alternatively, if the middleware comes from a third-party library, it may be more practical to subclass it: class CORSAwareMiddleware(SomeAuthMiddleware): def process_request(self, req, resp): # NOTE: handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon.HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP Alternatively, if the middleware comes from a third-party library, it may be more practical to subclass it: class CORSAwareMiddleware(SomeAuthMiddleware): def process_request(self, req, resp): # NOTE: handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon.HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationset of error classes you can raise when something goes wrong. Falcon will convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP Alternatively, if the middleware comes from a third-party library, it may be more practical to subclass it: class CORSAwareMiddleware(SomeAuthMiddleware): def process_request(self, req, resp): # NOTE: handled by custom_handle_http_error(). falcon.HTTPError is a superclass of falcon.HTTPForbidden and a subclass of Exception, so it is the most specific exception type with a registered handler. If an instance0 码力 | 378 页 | 1.29 MB | 1 年前3
共 46 条
- 1
- 2
- 3
- 4
- 5













