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

Method to_header_value

crates/client-api/src/auth.rs:59–63  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

57 }
58
59 pub fn to_header_value(&self) -> HeaderValue {
60 let mut val = HeaderValue::try_from(["Bearer ", self.token()].concat()).unwrap();
61 val.set_sensitive(true);
62 val
63 }
64
65 /// Extract credentials from the headers or else query string of a request.
66 fn from_request_parts(parts: &request::Parts) -> Result<Option<Self>, headers::Error> {

Callers

nothing calls this directly

Calls 2

tokenMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected