(self, url, headers, data, reqtype)
return req.prepare()
Prepare a request.
Prepare a request.
Prepare a request .
def prepare_request(self, url, headers, data, reqtype):
        """Prepare a request."""
        req = Request(reqtype.upper(), url, headers=headers, data=data)
        return req.prepare()
def prepare_request ( self , url , headers , data , reqtype ) : req = Request ( reqtype . upper ( ) , url , headers = headers , data = data ) return req . prepare ( )