def METHOD_NAME(self, data, sock, session):
    # convert the data from bytes to hex string
    hex_data = codecs.encode(data, "hex_codec")
    session.add_event({"raw_request": hex_data, "raw_response": ""})
    logger.debug(
        "Received %s bytes from outside to proxied service: %s", len(data), hex_data
    )
    if self.decoder:
        # TODO: data could be chunked, proxy needs to handle this
        decoded = self.decoder.decode_in(data)
        logger.debug("Decoded request: %s", decoded)
        session.add_event({"request": decoded, "raw_response": ""})
    sock.send(data)