hypercorn.middleware package

Module contents

class hypercorn.middleware.AsyncioWSGIMiddleware(wsgi_app: Callable[[dict, Callable], Iterable[bytes]], max_body_size: int = 65536)

Bases: hypercorn.middleware.wsgi._WSGIMiddleware

hypercorn.middleware.DispatcherMiddleware

alias of hypercorn.middleware.dispatcher.AsyncioDispatcherMiddleware

class hypercorn.middleware.HTTPToHTTPSRedirectMiddleware(app: Union[Type[hypercorn.typing.ASGI2Protocol], Callable[[dict, Callable, Callable], Awaitable[None]]], host: Optional[str])

Bases: object

class hypercorn.middleware.TrioWSGIMiddleware(wsgi_app: Callable[[dict, Callable], Iterable[bytes]], max_body_size: int = 65536)

Bases: hypercorn.middleware.wsgi._WSGIMiddleware