MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / decode

Method decode

crates/client-api/src/util/websocket.rs:27–29  ·  view source on GitHub ↗
(values: &mut I)

Source from the content-addressed store, hash-verified

25 &http::header::SEC_WEBSOCKET_PROTOCOL
26 }
27 fn decode<'i, I: Iterator<Item = &'i HeaderValue>>(values: &mut I) -> Result<Self, headers::Error> {
28 Ok(Self(values.collect()))
29 }
30 fn encode<E: Extend<HeaderValue>>(&self, values: &mut E) {
31 values.extend([self.0.value.clone()])
32 }

Callers

nothing calls this directly

Calls 4

OkFunction · 0.50
collectMethod · 0.45
mapMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected