MCPcopy Index your code
hub / github.com/RustPython/RustPython / proxy_dict

Function proxy_dict

crates/stdlib/src/scproxy.rs:23–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 };
22
23 fn proxy_dict() -> Option<CFDictionary<CFString, CFType>> {
24 // Py_BEGIN_ALLOW_THREADS
25 let proxy_dict = unsafe { SCDynamicStoreCopyProxies(core::ptr::null()) };
26 // Py_END_ALLOW_THREADS
27 if proxy_dict.is_null() {
28 None
29 } else {
30 Some(unsafe { CFDictionary::wrap_under_create_rule(proxy_dict) })
31 }
32 }
33
34 #[pyfunction]
35 fn _get_proxy_settings(vm: &VirtualMachine) -> PyResult<Option<PyDictRef>> {

Callers 2

_get_proxy_settingsFunction · 0.85
_get_proxiesFunction · 0.85

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected