def copy(self):
    p = PreparedRequest()
    p.method = self.method
    p.url = self.url
    p.headers = (self.headers.copy() if (self.headers is not None) else None)
    p._cookies = _copy_cookie_jar(self._cookies)
    p.body = self.body
    p.hooks = self.hooks
    p._body_position = self._body_position
    return p
def copy(self):
    p = PreparedRequest()
    p.method = self.method
    p.url = self.url
    p.headers = (self.headers.copy() if (self.headers is not None) else None)
    p._cookies = _copy_cookie_jar(self._cookies)
    p.body = self.body
    p.hooks = self.hooks
    p._body_position = self._body_position
    return p