MCPcopy Create free account
hub / github.com/bytecodealliance/wstd / options_mut

Method options_mut

src/http/client.rs:70–78  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

68 }
69
70 fn options_mut(&mut self) -> &mut RequestOptions {
71 match &mut self.options {
72 Some(o) => o,
73 uninit => {
74 *uninit = Some(RequestOptions::default());
75 uninit.as_mut().unwrap()
76 }
77 }
78 }
79
80 fn wasi_options(&self) -> Result<Option<WasiRequestOptions>, crate::http::Error> {
81 self.options

Callers 3

set_connect_timeoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected