Falcon v3.0.0-b2 Documentationresponses • Full Unicode support • Intuitive request and response objects • Works great with async libraries like gevent • Minimal attack surface for writing secure APIs • 100% code coverage with a comprehensive convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even initializing the Redis connection0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.1.1-b3 Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even calling ping() and close() DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() and process_shutdown()0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even calling ping() and close() DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() and process_shutdown()0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even calling ping() and close() DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() and process_shutdown()0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even calling ping() and close() DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() and process_shutdown()0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even calling ping() and close() DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() and process_shutdown()0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-rc1 Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even calling ping() and close() DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup() and process_shutdown()0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.0.0 Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even initializing the Redis connection DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup(). Create a cache.py0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationconvert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even initializing the Redis connection DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup(). Create a cache.py0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b1 Documentationresponses • Full Unicode support • Intuitive request and response objects • Works great with async libraries like gevent • Minimal attack surface for writing secure APIs • 100% code coverage with a comprehensive convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR A complete Redis cache component (cache.py) could look like: import msgpack class RedisCache: PREFIX = 'asgilook:' INVALIDATE_ON0 码力 | 338 页 | 1.14 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













