Collection useful middleware for aiohttp appliactions.
Project description
Collection of useful middlewares for aiohttp applications.
List of middlewares
Timeout
Do not allow request handling exceed X seconds.
from aiohttp import web
from aiohttp_middlewares import timeout_middleware_factory
app = web.Application(
middlewares=[
timeout_middleware_factory(29.5, ignore=['/slow-url']),
])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aiohttp-middlewares-0.1.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a648c0f64080e02df9bcc27e02dfab23783b85a4c6f6e5aed3ec61fc4d080c94 |
|
MD5 | d20df4a4bc143ff156c608e6c232bca5 |
|
BLAKE2b-256 | 60e5c26278f80807c6b43a8d595d0c72b4ac097662f0528b83c0879ceb7907fb |
Close
Hashes for aiohttp_middlewares-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0c71d7014cf04761ff1243ec0cbadc6cd544f6686f5e735a333578d59ef2fc4 |
|
MD5 | 9d18edda9388e8b979ae30e193837d08 |
|
BLAKE2b-256 | aed782b8e45d439a1e96cbc49b1c8a05dc0b13e45b5db3aa75a206765a4c86b0 |