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

Method into_bytes

crates/bindings/src/http.rs:694–698  ·  view source on GitHub ↗

Treat the body as a sequence of bytes.

(self)

Source from the content-addressed store, hash-verified

692impl Body {
693 /// Treat the body as a sequence of bytes.
694 pub fn into_bytes(self) -> Bytes {
695 match self.inner {
696 BodyInner::Bytes(bytes) => bytes,
697 }
698 }
699
700 /// Convert the body into a [`String`], erroring if it is not valid UTF-8.
701 pub fn into_string(self) -> Result<String, std::string::FromUtf8Error> {

Callers 5

utf8_encodeFunction · 0.45
bytestring_to_utf8bytesFunction · 0.45
sendMethod · 0.45
response_into_wireFunction · 0.45
into_stringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected