MCPcopy
hub / github.com/scrapy/scrapy / replace

Method replace

scrapy/http/request/__init__.py:323–325  ·  view source on GitHub ↗
(
        self, *args: Any, cls: type[RequestTypeVar], **kwargs: Any
    )

Source from the content-addressed store, hash-verified

321
322 @overload
323 def replace(
324 self, *args: Any, cls: type[RequestTypeVar], **kwargs: Any
325 ) -> RequestTypeVar: ...
326
327 @overload
328 def replace(self, *args: Any, cls: None = None, **kwargs: Any) -> Self: ...

Callers 15

copyMethod · 0.95
test_request_replaceMethod · 0.95
test_cached_and_freshMethod · 0.95
test_cached_and_staleMethod · 0.95
test_referer_headerMethod · 0.95
mitm_proxy_server_httpsFunction · 0.45
xmliterFunction · 0.45
_versionFunction · 0.45
strip_urlFunction · 0.45
rel_has_nofollowFunction · 0.45
get_project_settingsFunction · 0.45

Calls 1

setdefaultMethod · 0.45

Tested by 15

test_request_replaceMethod · 0.76
test_cached_and_freshMethod · 0.76
test_cached_and_staleMethod · 0.76
test_referer_headerMethod · 0.76
mitm_proxy_server_httpsFunction · 0.36
printf_escapeFunction · 0.36
test_headersMethod · 0.36
get_permissions_dictFunction · 0.36
test_replace_dataMethod · 0.36