libs/status.py
def deserialize(cls, raw_bytes):
        """
        Deserialize raw bytes into WebsiteStatus instance
        :param raw_bytes: bytes content
        :return: WebsiteStatus instance
        """
        dictv = msgpack.unpackb(raw_bytes, raw=False)
        reborn = WebsiteStatus(dictv['from'], dictv['url'], dictv['status'], dictv['phrase'], dictv['dns'],
                               dictv['response'], dictv['detail'], dictv['offset'])
        # timestamp has to be reset to the original value since reborn comes with a newly created timestamp
        reborn['timestamp'] = dictv['timestamp']
        return reborn

        Deserialize raw bytes into WebsiteStatus instance
        :param raw_bytes: bytes content
        :return: WebsiteStatus instance
        
Deserialize raw bytes into WebsiteStatus instance
Deserialize raw bytes into WebsiteStatus instance
def deserialize(cls, raw_bytes):
        dictv = msgpack.unpackb(raw_bytes, raw=False)
        reborn = WebsiteStatus(dictv['from'], dictv['url'], dictv['status'], dictv['phrase'], dictv['dns'],
                               dictv['response'], dictv['detail'], dictv['offset'])
        reborn['timestamp'] = dictv['timestamp']
        return reborn
def deserialize ( cls , raw_bytes ) : dictv = msgpack . unpackb ( raw_bytes , raw = False ) reborn = WebsiteStatus ( dictv [ 'from' ] , dictv [ 'url' ] , dictv [ 'status' ] , dictv [ 'phrase' ] , dictv [ 'dns' ] , dictv [ 'response' ] , dictv [ 'detail' ] , dictv [ 'offset' ] ) reborn [ 'timestamp' ] = dictv [ 'timestamp' ] return reborn
Deserialize raw bytes into WebsiteStatus instance
Deserialize raw bytes into WebsiteStatus instance
"""
        Deserialize raw bytes into WebsiteStatus instance
        :param raw_bytes: bytes content
        :return: WebsiteStatus instance
        """ # timestamp has to be reset to the original value since reborn comes with a newly created timestamp
None
cls
raw_bytes
None