'* msgpack is MUCH faster than cPickle,
* msgpack can\'t serialize python objects,
* I have to create a dict representation of HTTPRequest to serialize it,
* and a from_dict to have the object back
:param unserialized_dict: A dict just as returned by to_dict()'

@classmethod
def from_dict(cls, unserialized_dict):

    udict = unserialized_dict
    (method, uri) = (udict['method'], udict['uri'])
    (headers, data) = (udict['headers'], udict['data'])
    cookies = udict['cookies']
    cache = udict['cache']
    timeout = (socket._GLOBAL_DEFAULT_TIMEOUT if (udict['timeout'] is None) else udict['timeout'])
    new_connection = udict['new_connection']
    follow_redirects = udict['follow_redirects']
    use_basic_auth = udict['use_basic_auth']
    use_proxy = udict['use_proxy']
    headers_inst = Headers(headers.items())
    url = URL(uri)
    return cls(url, data=data, headers=headers_inst, cookies=cookies, cache=cache, method=method, timeout=timeout, new_connection=new_connection, follow_redirects=follow_redirects, use_basic_auth=use_basic_auth, use_proxy=use_proxy)
