Metadata-Version: 2.0
Name: aiohttp-middlewares
Version: 0.1.0a1
Summary: Collection useful middleware for aiohttp appliactions.
Home-page: http://github.com/playpauseandstop/aiohttp_middlewares
Author: Igor Davydenko
Author-email: playpauseandstop@gmail.com
License: BSD License
Keywords: aiohttp middlewares
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Utilities
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Classifier: License :: OSI Approved :: BSD License
Requires-Dist: aiohttp (>=2.0,<3.0)

===================
aiohttp-middlewares
===================

.. image:: https://img.shields.io/circleci/project/playpauseandstop/aiohttp-middlewares/master.svg?maxAge=2592000
    :target: https://circleci.com/gh/playpauseandstop/aiohttp-middlewares
    :alt: CircleCI

.. image:: https://img.shields.io/pypi/v/aiohttp-middlewares.svg
    :target: https://pypi.org/project/aiohttp-middlewares/
    :alt: Latest Version

.. image:: https://img.shields.io/pypi/pyversions/aiohttp-middlewares.svg
    :target: https://pypi.org/project/aiohttp-middlewares/
    :alt: Python versions

.. image:: https://img.shields.io/pypi/l/aiohttp-middlewares.svg
    :target: https://github.com/playpauseandstop/aiohttp-middlewares/blob/master/LICENSE
    :alt: BSD License

.. image:: https://coveralls.io/repos/playpauseandstop/aiohttp-middlewares/badge.svg?branch=master&service=github
    :target: https://coveralls.io/github/playpauseandstop/aiohttp-middlewares
    :alt: Coverage

Collection of useful middlewares for `aiohttp <http://aiohttp.readthedocs.org/>`_
applications.

List of middlewares
===================

Timeout
-------

Do not allow request handling exceed X seconds.

.. code-block:: python

    from aiohttp import web
    from aiohttp_middlewares import timeout_middleware_factory

    app = web.Application(
        middlewares=[
            timeout_middleware_factory(29.5, ignore=['/slow-url']),
        ])


