Source code for harp.controllers.typing

from typing import Protocol

from harp.http import HttpRequest, HttpResponse


[docs] class IControllerResolver(Protocol):
[docs] async def resolve(self, request: HttpRequest): ...
[docs] class IAsyncController(Protocol): async def __call__(self, request: HttpRequest) -> HttpResponse: ...