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

Method set_first_byte_timeout

src/http/client.rs:61–63  ·  view source on GitHub ↗

Set timeout on recieving first byte of the Response body

(&mut self, d: impl Into<Duration>)

Source from the content-addressed store, hash-verified

59
60 /// Set timeout on recieving first byte of the Response body
61 pub fn set_first_byte_timeout(&mut self, d: impl Into<Duration>) {
62 self.options_mut().first_byte_timeout = Some(d.into());
63 }
64
65 /// Set timeout on recieving subsequent chunks of bytes in the Response body stream
66 pub fn set_between_bytes_timeout(&mut self, d: impl Into<Duration>) {

Callers 4

to_wasiMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

options_mutMethod · 0.80

Tested by

no test coverage detected