MCPcopy
hub / github.com/urllib3/urllib3 / new

Method new

src/urllib3/util/retry.py:266–288  ·  view source on GitHub ↗
(self, **kw: typing.Any)

Source from the content-addressed store, hash-verified

264 self.backoff_jitter = backoff_jitter
265
266 def new(self, **kw: typing.Any) -> Self:
267 params = dict(
268 total=self.total,
269 connect=self.connect,
270 read=self.read,
271 redirect=self.redirect,
272 status=self.status,
273 other=self.other,
274 allowed_methods=self.allowed_methods,
275 status_forcelist=self.status_forcelist,
276 backoff_factor=self.backoff_factor,
277 backoff_max=self.backoff_max,
278 retry_after_max=self.retry_after_max,
279 raise_on_redirect=self.raise_on_redirect,
280 raise_on_status=self.raise_on_status,
281 history=self.history,
282 remove_headers_on_redirect=self.remove_headers_on_redirect,
283 respect_retry_after_header=self.respect_retry_after_header,
284 backoff_jitter=self.backoff_jitter,
285 )
286
287 params.update(kw)
288 return type(self)(**params) # type: ignore[arg-type]
289
290 @classmethod
291 def from_int(

Callers 7

incrementMethod · 0.95
readintoMethod · 0.80
__init__Method · 0.80
sendMethod · 0.80
send_requestFunction · 0.80
send_jspi_requestFunction · 0.80

Calls

no outgoing calls