def __init__()

in apisix/runner/server/response.py [0:0]


    def __init__(self, code: int = 0, message: str = '', data: bytes = b'', ty: int = 0):
        """
        init response handler
        :param code:
            response code
        :param message:
            response message
        :param data:
            response data
        :param ty:
            response type
        """
        self.__code = code
        self.__message = message
        self.__type = ty
        self.__data = data