class documentation

class PassthroughRetryPrepare(PrepareRequestForRetry): (source)

View In Hierarchy

Returns the Request's keyword arguments unchanged, when no change needs to be made before a retry.

Method prepare Process the Request's keyword arguments before retrying the Request.
def prepare(self, original_request_kwargs: CaseInsensitiveDict) -> CaseInsensitiveDict: (source)

Process the Request's keyword arguments before retrying the Request. Args: original_request_kwargs (CaseInsensitiveDict): The keyword arguments of the Request. Returns: CaseInsensitiveDict: The new keyword arguments to use in the retried Request.