MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / get_http_client

Method get_http_client

rust/src/lib.rs:1611–1618  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1609 }
1610
1611 fn get_http_client(&self) -> Result<&Client, Error> {
1612 if let Some(http_client) = self.get_http_client_cell().get() {
1613 return Ok(http_client);
1614 }
1615 let http_client =
1616 create_http_client(self.get_timeout(), self.get_proxy(), self.is_insecure())?;
1617 Ok(self.get_http_client_cell().get_or_init(|| http_client))
1618 }
1619
1620 fn reset_http_client(&mut self) {
1621 self.get_http_client_cell_mut().take();

Implementers 8

edge.rsrust/src/edge.rs
iexplorer.rsrust/src/iexplorer.rs
safaritp.rsrust/src/safaritp.rs
electron.rsrust/src/electron.rs
chrome.rsrust/src/chrome.rs
firefox.rsrust/src/firefox.rs
grid.rsrust/src/grid.rs
safari.rsrust/src/safari.rs

Calls 6

create_http_clientFunction · 0.85
get_proxyMethod · 0.80
is_insecureMethod · 0.80
getMethod · 0.65
get_http_client_cellMethod · 0.45
get_timeoutMethod · 0.45

Tested by 1