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

Function request_insert_protocol_header

sdks/rust/src/websocket.rs:247–252  ·  view source on GitHub ↗
(req: &mut http::Request<()>)

Source from the content-addressed store, hash-verified

245
246#[cfg(not(feature = "browser"))]
247fn request_insert_protocol_header(req: &mut http::Request<()>) {
248 req.headers_mut().insert(
249 http::header::SEC_WEBSOCKET_PROTOCOL,
250 const { http::HeaderValue::from_static(ws::v2::BIN_PROTOCOL) },
251 );
252}
253
254#[cfg(not(feature = "browser"))]
255fn request_insert_auth_header(req: &mut http::Request<()>, token: Option<&str>) {

Callers 1

make_requestFunction · 0.85

Calls 1

insertMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…