Source code for faust.types.web

import typing
from typing import Awaitable, Callable, Type, Union

from aiohttp.client import ClientSession

if typing.TYPE_CHECKING:
    from faust.web.base import Request, Response, Web
    from faust.web.views import Site, View
else:
[docs] class Request: ... # noqa
[docs] class Response: ... # noqa
[docs] class Web: ... # noqa
[docs] class Site: ... # noqa
[docs] class View: ... # noqa
__all__ = [ 'Request', 'Response', 'Site', 'View', 'ViewGetHandler', 'RoutedViewGetHandler', 'PageArg', 'HttpClientT', 'Web', ] ViewGetHandler = Callable[[View, Request], Awaitable[Response]] RoutedViewGetHandler = Callable[[ViewGetHandler], ViewGetHandler] PageArg = Union[Type[View], ViewGetHandler]
[docs]class HttpClientT(ClientSession): ...