"""Arquivo de interface para controlers"""
from typing import Type, Optional
from abc import ABC, abstractmethod
from mitmirror.presenters.helpers import HttpRequest, HttpResponse


class ControllerInterface(ABC):
    """Interface Padrão para controllers"""

    @abstractmethod
    def handler(
        self, param: Optional[any] = None, http_request: Type[HttpRequest] = None
    ) -> HttpResponse:
        """Methodo para facilitar o request"""

        raise Exception("Should implement handler method")

"""Arquivo de interface para controlers"""
from typing import Type, Optional
from abc import ABC, abstractmethod
from mitmirror.presenters.helpers import HttpRequest, HttpResponse


class ControllerInterface(ABC):
    """Interface Padrão para controllers"""

    @abstractmethod
    def handler(
        self, param: Optional[any] = None, http_request: Type[HttpRequest] = None
    ) -> HttpResponse:
        """Methodo para facilitar o request"""

        raise Exception("Should implement handler method")

Arquivo de interface para controlers Interface Padrão para controllers Methodo para facilitar o request