MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / from_text

Method from_text

src/client/async_impl/response/ws/message.rs:124–127  ·  view source on GitHub ↗
(text: PyBackedStr)

Source from the content-addressed store, hash-verified

122 #[staticmethod]
123 #[pyo3(signature = (text))]
124 pub fn from_text(text: PyBackedStr) -> Self {
125 let msg = wreq::Message::text(Utf8Bytes::from_bytes_unchecked(Bytes::from_owner(text)));
126 Message(msg)
127 }
128
129 /// Creates a new binary message.
130 #[staticmethod]

Callers 3

send_messageFunction · 0.80
send_messageFunction · 0.80
test_websocketFunction · 0.80

Calls 1

MessageClass · 0.85

Tested by 1

test_websocketFunction · 0.64