Falcon v3.0.0 Documentation
html] come to the rescue. An ASGI application server emits these events upon application startup and shutdown. Let’s implement the process_startup() handler in our middleware to execute code upon our application not fire depending on your ASGI server. A lifespan event handler can be used to perform startup or shutdown activities for the main event loop. An example of this would be creating a connection pool and subsequently startup event. """ async def process_shutdown(self, scope, event): """Process the ASGI lifespan shutdown event. Invoked when the server has stopped accepting0 码力 | 1055 页 | 739.30 KB | 1 年前3Falcon v3.0.1 Documentation
html] come to the rescue. An ASGI application server emits these events upon application startup and shutdown. Let’s implement the process_startup() handler in our middleware to execute code upon our application not fire depending on your ASGI server. A lifespan event handler can be used to perform startup or shutdown activities for the main event loop. An example of this would be creating a connection pool and subsequently startup event. """ async def process_shutdown(self, scope, event): """Process the ASGI lifespan shutdown event. Invoked when the server has stopped accepting0 码力 | 1058 页 | 741.59 KB | 1 年前3Falcon v3.0.0-b1 Documentation
html] come to the rescue. An ASGI application server emits these events upon application startup and shutdown. Let’s implement the process_startup handler in our middleware to execute code upon our application not fire depending on your ASGI server. A lifespan event handler can be used to perform startup or shutdown activities for the main event loop. An example of this would be creating a connection pool and subsequently startup event. """ async def process_shutdown(self, scope, event): """Process the ASGI lifespan shutdown event. Invoked when the server has stopped accepting0 码力 | 1028 页 | 725.86 KB | 1 年前3Falcon v3.0.0-b2 Documentation
html] come to the rescue. An ASGI application server emits these events upon application startup and shutdown. Let’s implement the process_startup() handler in our middleware to execute code upon our application not fire depending on your ASGI server. A lifespan event handler can be used to perform startup or shutdown activities for the main event loop. An example of this would be creating a connection pool and subsequently startup event. """ async def process_shutdown(self, scope, event): """Process the ASGI lifespan shutdown event. Invoked when the server has stopped accepting0 码力 | 1041 页 | 730.21 KB | 1 年前3Falcon v3.1.1-b3 Documentation
events upon application startup and shutdown. 62 Chapter 5. Documentation Falcon Documentation, Release 3.1.1b3 Let’s implement the process_startup() and process_shutdown() handlers in our middleware to code upon our application’s startup and shutdown, respectively: async def process_startup(self, scope, event): await self._redis.ping() async def process_shutdown(self, scope, event): await self._redis component by implementing two more middleware methods, in addition to process_startup() and process_shutdown(). Create a cache.py module containing the following code: 5.1. User Guide 63 Falcon Documentation0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.1-b1 Documentation
events upon application startup and shutdown. 62 Chapter 5. Documentation Falcon Documentation, Release 3.1.1b1 Let’s implement the process_startup() and process_shutdown() handlers in our middleware to code upon our application’s startup and shutdown, respectively: async def process_startup(self, scope, event): await self._redis.ping() async def process_shutdown(self, scope, event): await self._redis component by implementing two more middleware methods, in addition to process_startup() and process_shutdown(). Create a cache.py module containing the following code: 5.1. User Guide 63 Falcon Documentation0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.1-a Documentation
events upon application startup and shutdown. 62 Chapter 5. Documentation Falcon Documentation, Release 3.1.1 Let’s implement the process_startup() and process_shutdown() handlers in our middleware to execute code upon our application’s startup and shutdown, respectively: async def process_startup(self, scope, event): await self._redis.ping() async def process_shutdown(self, scope, event): await self._redis component by implementing two more middleware methods, in addition to process_startup() and process_shutdown(). Create a cache.py module containing the following code: 5.1. User Guide 63 Falcon Documentation0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.0 Documentation
events upon application startup and shutdown. 62 Chapter 5. Documentation Falcon Documentation, Release 3.1.0 Let’s implement the process_startup() and process_shutdown() handlers in our middleware to execute code upon our application’s startup and shutdown, respectively: async def process_startup(self, scope, event): await self._redis.ping() async def process_shutdown(self, scope, event): await self._redis component by implementing two more middleware methods, in addition to process_startup() and process_shutdown(). Create a cache.py module containing the following code: 5.1. User Guide 63 Falcon Documentation0 码力 | 362 页 | 1.29 MB | 1 年前3Falcon v3.1.1 Documentation
events upon application startup and shutdown. 62 Chapter 5. Documentation Falcon Documentation, Release 3.1.1 Let’s implement the process_startup() and process_shutdown() handlers in our middleware to execute code upon our application’s startup and shutdown, respectively: async def process_startup(self, scope, event): await self._redis.ping() async def process_shutdown(self, scope, event): await self._redis component by implementing two more middleware methods, in addition to process_startup() and process_shutdown(). Create a cache.py module containing the following code: 5.1. User Guide 63 Falcon Documentation0 码力 | 378 页 | 1.29 MB | 1 年前3Falcon v3.1.1-rc1 Documentation
events upon application startup and shutdown. 62 Chapter 5. Documentation Falcon Documentation, Release 3.1.1rc1 Let’s implement the process_startup() and process_shutdown() handlers in our middleware to code upon our application’s startup and shutdown, respectively: async def process_startup(self, scope, event): await self._redis.ping() async def process_shutdown(self, scope, event): await self._redis component by implementing two more middleware methods, in addition to process_startup() and process_shutdown(). Create a cache.py module containing the following code: 5.1. User Guide 63 Falcon Documentation0 码力 | 378 页 | 1.29 MB | 1 年前3
共 28 条
- 1
- 2
- 3