def receive(
            self,
            request: RequestType,
            user: UserType = None,
            sender_key_fetcher: Callable[[str], str] = None,
            skip_author_verification: bool = False) -> Tuple[str, dict]:
        """
        Receive a request.

        For testing purposes, `skip_author_verification` can be passed. Authorship will not be verified.
        """
        self.user = user
        self.get_contact_key = sender_key_fetcher
        self.payload = json.loads(decode_if_bytes(request.body))
        self.request = request
        self.extract_actor()
        # Verify the message is from who it claims to be
        if not skip_author_verification:
            self.verify_signature()
        return self.actor, self.payload
def receive ( self , request : RequestType , user : UserType = None , sender_key_fetcher : Callable [ [ str ] , str ] = None , skip_author_verification : bool = False ) -> Tuple [ str , dict ] : self . user = user self . get_contact_key = sender_key_fetcher self . payload = json . loads ( decode_if_bytes ( request . body ) ) self . request = request self . extract_actor ( ) if not skip_author_verification : self . verify_signature ( ) return self . actor , self . payload
Receive a request.

        For testing purposes, `skip_author_verification` can be passed. Authorship will not be verified.