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
File details
Details for the file aiohttp-middlewares-0.1.0a1.tar.gz
.
File metadata
- Download URL: aiohttp-middlewares-0.1.0a1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a648c0f64080e02df9bcc27e02dfab23783b85a4c6f6e5aed3ec61fc4d080c94 |
|
MD5 | d20df4a4bc143ff156c608e6c232bca5 |
|
BLAKE2b-256 | 60e5c26278f80807c6b43a8d595d0c72b4ac097662f0528b83c0879ceb7907fb |
Provenance
File details
Details for the file aiohttp_middlewares-0.1.0a1-py3-none-any.whl
.
File metadata
- Download URL: aiohttp_middlewares-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0c71d7014cf04761ff1243ec0cbadc6cd544f6686f5e735a333578d59ef2fc4 |
|
MD5 | 9d18edda9388e8b979ae30e193837d08 |
|
BLAKE2b-256 | aed782b8e45d439a1e96cbc49b1c8a05dc0b13e45b5db3aa75a206765a4c86b0 |