faust.web.drivers.aiohttp

Web driver using aiohttp.

class faust.web.drivers.aiohttp.Web(app: faust.types.app.AppT, **kwargs) → None[source]

Web server and framework implemention using aiohttp.

driver_version = 'aiohttp=3.5.4'
handler_shutdown_timeout = 60.0
text(value: str, *, content_type: str = None, status: int = 200) → faust.web.base.Response[source]
Return type:Response
html(value: str, *, status: int = 200) → faust.web.base.Response[source]
Return type:Response
json(value: Any, *, status: int = 200) → Any[source]
Return type:Any
bytes(value: bytes, *, content_type: str = None, status: int = 200) → faust.web.base.Response[source]
Return type:Response
route(pattern: str, handler: Callable) → None[source]
Return type:None
add_static(prefix: str, path: Union[pathlib.Path, str], **kwargs) → None[source]
Return type:None
bytes_to_response(s: bytes) → faust.web.base.Response[source]
Return type:Response
response_to_bytes(response: faust.web.base.Response) → bytes[source]
Return type:bytes
logger = <Logger faust.web.drivers.aiohttp (WARNING)>
coroutine on_start(self) → None[source]

Called every time before the service is started/restarted.

Return type:None
coroutine read_request_content(self, request: faust.web.base.Request) → bytes[source]
Return type:bytes
coroutine start_server(self) → None[source]
Return type:None
coroutine stop_server(self) → None[source]
Return type:None
coroutine wsgi(self) → Any[source]
Return type:Any