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

Method protocol

src/client/async_impl/response/ws/mod.rs:188–195  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

186 /// Returns the WebSocket protocol.
187 #[getter]
188 pub fn protocol(&self) -> Option<&str> {
189 self.protocol
190 .as_ref()
191 .map(HeaderValue::to_str)
192 .transpose()
193 .ok()
194 .flatten()
195 }
196
197 /// Receives a message from the WebSocket.
198 pub fn recv<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {

Callers 1

newMethod · 0.45

Calls 1

okMethod · 0.45

Tested by

no test coverage detected